@Test
public void getsMethodInvokerFor_OPTIONS_Request() {

    when(request.getMethod()).thenReturn("OPTIONS");
    MethodInvoker methodInvoker = applicationContext.getMethodInvoker(mock(GenericResourceMethod.class));
    assertTrue(String.format("Expected instance of OptionsRequestMethodInvoker but actual is %s", methodInvoker),
               methodInvoker instanceof OptionsRequestMethodInvoker);
}