setUpSubnodeConfig();
SubnodeConfiguration copy = (SubnodeConfiguration) config.clone();
assertNotSame("Same model", config.getModel(), copy.getModel());
TrackedNodeModel subModel = (TrackedNodeModel) copy.getModel();
assertEquals("Wrong selector", SELECTOR, subModel.getSelector());
InMemoryNodeModel parentModel = (InMemoryNodeModel) parent.getModel();
assertEquals("Wrong parent model", parentModel,
subModel.getParentModel());
// Check whether the track count was increased
parentModel.untrackNode(SELECTOR);
parentModel.untrackNode(SELECTOR);
assertTrue("Wrong finalize flag",
subModel.isReleaseTrackedNodeOnFinalize());
}