@Test
public void testNestedStandAlone() throws Exception {
OpStringManagerController opStringManagerController = new OpStringManagerController();
opStringManagerController.setConfig(new DynamicConfiguration());
OperationalString opString1 = new OpString("test-1", null);
Map<String, Throwable> errorMap = new HashMap<String, Throwable>();
OpStringManager manager1 = opStringManagerController.addOperationalString(opString1,
errorMap,
null,
TestUtil.createDeployAdmin(),
null);
Assert.assertTrue(manager1.isStandAlone());
Assert.assertTrue(manager1.getParentCount()==0);
OpString opString2 = new OpString("test-2", null);
opString2.addOperationalString(opString1);
OpStringManager manager2 = opStringManagerController.addOperationalString(opString2,
errorMap,
null,
TestUtil.createDeployAdmin(),
null);