@Test
public void invokesMethodWithEntityParameter() throws Exception {

    when(resourceMethod.getMethodParameters()).thenReturn(newArrayList(entityParameter));
    Object invocationResult = methodInvoker.invokeMethod(new EchoResource(), resourceMethod, applicationContext);
    assertEquals(ARGUMENT_VALUE, invocationResult);
}