@Test
@FixFor( "MODE-2115" )
public void copiedNodesShouldReplaceAutoCreatedChildren() throws Exception {

    tools.registerNodeTypes(session, "cnd/autocreated-child-nodes.cnd");
    Node parent = session.getRootNode().addNode("parent", "test:autocreatedFolders");
    session.save();
    long folder1CreatedTs = parent.getNode("folder1").getProperty("jcr:created").getDate().getTimeInMillis();
    long folder2CreatedTs = parent.getNode("folder2").getProperty("jcr:created").getDate().getTimeInMillis();
    workspace.copy("/parent", "/new_parent");
    AbstractJcrNode newParent = session.getNode("/new_parent");
    assertEquals(2, newParent.getNodes().getSize());
    Node folder1Copy = assertNode("/new_parent/folder1", "nt:folder");
    assertEquals(folder1CreatedTs, folder1Copy.getProperty("jcr:created").getDate().getTimeInMillis());
    Node folder2Copy = assertNode("/new_parent/folder2", "nt:folder");
    assertEquals(folder2CreatedTs, folder2Copy.getProperty("jcr:created").getDate().getTimeInMillis());
}