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