@Test
public void providesWadlResponse() throws Exception {

    org.everrest.core.wadl.research.Application wadlDoc = new org.everrest.core.wadl.research.Application();
    when(wadlProcessor.process(resourceDescriptor, URI.create("/a"))).thenReturn(wadlDoc);
    Object object = new Object();
    Response response = (Response)optionsRequestMethodInvoker.invokeMethod(object, resourceMethod, applicationContext);
    assertEquals(200, response.getStatus());
    assertEquals(new MediaType("application", "vnd.sun.wadl+xml"), response.getMediaType());
    assertSame(wadlDoc, response.getEntity());
}