@Test
public void testAnnotatedMethodMissingNotRequired() throws Exception
{
AnnotatedEntryPointResolver resolver = new AnnotatedEntryPointResolver();
AnnotatedComponent component = new AnnotatedComponent();
MuleEventContext context = getTestEventContext(TEST_PAYLOAD);
//Since AnnotatedComponent2 has two annotated methods we need to set the method to call
context.getMessage().setProperty(MuleProperties.MULE_METHOD_PROPERTY, "doStuff5", PropertyScope.INVOCATION);
InvocationResult result = resolver.invoke(component, context);
assertEquals(result.getState(), InvocationResult.State.SUCCESSFUL);
assertTrue(result.getResult() instanceof Map);
Map<?, ?> map = (Map<?, ?>)result.getResult();
assertEquals(1, map.size());