public void testReloadFailed() {
expect(moduleOperationRegistry.getOperation(ModuleOperationConstants.ReloadModuleNamedLikeOperation)).andReturn(moduleOperation);
HashMap<String, Object> resultMap = new HashMap<String, Object>();
resultMap.put("moduleName", "moduleName");
expect(moduleOperation.execute(application, new ModuleOperationInput(null, null, "someModule"))).andReturn(new ModuleOperationResult(newFailedTransitionResultSet(), resultMap));
replayMocks();
assertEquals("One or more module operations failed: stuff went wrong1", operations.reloadModule("someModule"));
verifyMocks();