}
public void testThrowException() throws Exception {
SimpleRootModuleDefinition a = new SimpleRootModuleDefinition("a", (String)null);
expect(moduleRuntimeManager.initModule(application, a)).andThrow(new RuntimeException());
replay(moduleRuntimeManager);
try {
processor.process(application, a, a);
fail();
}
catch (RuntimeException e) {
e.printStackTrace();
}
verify(moduleRuntimeManager);
assertEquals(ModuleState.ERROR, a.getState());
}