public void testMatchOnNoArgs() throws Exception
{
ReflectionEntryPointResolver resolver = new ReflectionEntryPointResolver();
//This should fail because the Kiwi.bite() method has a void return type, and by default
//void methods are ignorred
InvocationResult result = resolver.invoke(new Kiwi(), getTestEventContext(NullPayload.getInstance()));
assertEquals(result.getState(), InvocationResult.State.FAILED);
resolver.setAcceptVoidMethods(true);
result = resolver.invoke(new Kiwi(), getTestEventContext(NullPayload.getInstance()));
assertEquals(result.getState(), InvocationResult.State.SUCCESSFUL);
assertEquals("bite", result.getMethodCalled());
}