servletContext = EasyMock.createMock(ServletContext.class);
}
public void testNewStateChangeListenerOK() throws Exception {
ModuleStateChangeListener listener = creator.newModuleStateChangeListener("myServlet");
replayMocks();
ModuleStateChange moduleStateChange = new ModuleStateChange(Transition.UNLOADED_TO_LOADED, new SimpleModuleDefinition("myModule"));
TransitionResult transitionResult = new TransitionResult(moduleStateChange);
try {
listener.moduleStateChanged(createMock(ModuleStateHolder.class),transitionResult);
fail();
}
catch (ExecutionException e) {
}