expect(handler.handleResult(result)).andReturn(true);
replay();
ComponentEvent event = new ComponentEventImpl("eventType", "someId", null, handler, null, logger);
event.setMethodDescription("foo.Bar.baz()");
event.storeResult(result);
try
{
event.setMethodDescription("foo.Bar.biff()");
event.storeResult(null);
unreachable();
}
catch (IllegalStateException ex)
{
assertEquals(ex.getMessage(), ServicesMessages