File testFile =
ConfigurationAssert.getTestFile("testCCReloadingNested.xml");
builder.configure(new FileBasedBuilderParametersImpl()
.setFile(testFile));
builder.getConfiguration();
CombinedReloadingController rc =
(CombinedReloadingController) builder.getReloadingController();
Collection<ReloadingController> subControllers = rc.getSubControllers();
assertEquals("Wrong number of sub controllers", 2,
subControllers.size());
ReloadingControllerSupport ccBuilder =
(ReloadingControllerSupport) builder.getNamedBuilder("cc");
assertTrue("Sub controller not found",
subControllers.contains(ccBuilder.getReloadingController()));
CombinedReloadingController rc2 =
(CombinedReloadingController) ccBuilder
.getReloadingController();
assertEquals("Wrong number of sub controllers (2)", 3, rc2
.getSubControllers().size());
}