@Test
public void testServiceCheckRegistered() throws Exception {

  ServiceInfo info = new ServiceInfo();
  info.setName("service1");
  info.setCommandScript(createNiceMock(CommandScriptDefinition.class));
  StackContext context = createStackContext(info.getName(), true);
  ServiceModule service = createServiceModule(info, Collections.<ConfigurationModule>emptySet(), context);
  service.finalizeModule();
  verify(context);
}