diff --git oak-it/src/test/java/org/apache/jackrabbit/oak/api/NodeBuilderTest.java oak-it/src/test/java/org/apache/jackrabbit/oak/api/NodeBuilderTest.java
new file mode 100644
index 0000000..c232f2e
--- /dev/null
+++ oak-it/src/test/java/org/apache/jackrabbit/oak/api/NodeBuilderTest.java
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.jackrabbit.oak.api;
+
+import org.apache.jackrabbit.oak.OakBaseTest;
+import org.apache.jackrabbit.oak.fixture.NodeStoreFixture;
+import org.apache.jackrabbit.oak.spi.commit.CommitInfo;
+import org.apache.jackrabbit.oak.spi.commit.EmptyHook;
+import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
+import org.junit.Test;
+
+import static org.junit.Assert.assertFalse;
+
+public class NodeBuilderTest extends OakBaseTest {
+
+    public NodeBuilderTest(NodeStoreFixture fixture) {
+        super(fixture);
+    }
+
+    @Test
+    public void isReplacedBehaviour() throws Exception{
+        NodeBuilder nb = store.getRoot().builder();
+        nb.child("a").setProperty("foo", "bar");
+
+        store.merge(nb, EmptyHook.INSTANCE, CommitInfo.EMPTY);
+
+        nb = store.getRoot().builder();
+        nb.child("a").child("b");
+        assertFalse(nb.getChildNode("a").isReplaced("foo"));
+    }
+}
