GenericController controller = new GenericController();
SwitchController switch_cont = new SwitchController();
switch_cont.setSelection(cond);
controller.addTestElement(new TestSampler("before"));
controller.addTestElement(switch_cont);
switch_cont.addTestElement(new TestSampler("zero"));
switch_cont.addTestElement(new TestSampler("one"));
switch_cont.addTestElement(new TestSampler("two"));
switch_cont.addTestElement(new TestSampler("three"));
controller.addTestElement(new TestSampler("after"));
controller.initialize();
for (int i = 1; i <= 3; i++) {
assertEquals("Loop " + i, "before", nextName(controller));