builder.addDestroyParameter(Date.class.getName(), new Date());
KernelControllerContext context = controller.install(builder.getBeanMetaData());
assertEquals(ControllerState.INSTALLED, context.getState());
KernelBus bus = kernel.getBus();
assertInstanceOf(bus, LifecycleAwareKernelBus.class);
bus.invoke("Name1", "executeDestroy", new Object[]{-1, new Date()}, new String[]{int.class.getName(), Date.class.getName()});
assertEquals(ControllerState.CONFIGURED, context.getState());
bus.invoke("Name1", "create", null, null);
assertEquals(ControllerState.CREATE, context.getState());
bus.invoke("Name1", "start", new Object[]{"foobar"}, new String[]{String.class.getName()});
assertEquals(ControllerState.START, context.getState());
bus.invoke("Name1", "doStop", null, null);
assertEquals(ControllerState.CREATE, context.getState());
}