@Test
public void delegatesCallToMethodInvoker() throws Exception {

    Object object = new Object();
    GenericResourceMethod method = mock(GenericResourceMethod.class);
    ApplicationContext applicationContext = mock(ApplicationContext.class);
    decorator.invokeMethod(object, method, applicationContext);
    verify(methodInvoker).invokeMethod(object, method, applicationContext);
}