@Test
public void notifiesMethodInvokerFiltersBeforeMethodInvocation() throws Exception {

    MethodInvokerFilter methodInvokerFilter = mock(MethodInvokerFilter.class);
    when(resourceMethod.getMethodParameters()).thenReturn(newArrayList(entityParameter));
    when(applicationContext.getProviders().getMethodInvokerFilters(RESOURCE_PATH)).thenReturn(newArrayList(methodInvokerFilter));
    methodInvoker.invokeMethod(new EchoResource(), resourceMethod, applicationContext);
    verify(methodInvokerFilter).accept(eq(resourceMethod), aryEq(new Object[]{ARGUMENT_VALUE}));
}