@Test
public void adds_OPTIONS_HttpMethodThatGenerated_WADL_Response() {

    ResourceDescriptor resource = new AbstractResourceDescriptor(SampleRootResource.class);
    assertNotNull(resource.getResourceMethods().get("OPTIONS"));
    assertEquals(1, resource.getResourceMethods().get("OPTIONS").size());
    ResourceMethodDescriptor methodDescriptor = resource.getResourceMethods().get("OPTIONS").get(0);
    assertNull(methodDescriptor.getMethod());
    assertEquals("OPTIONS", methodDescriptor.getHttpMethod());
    assertEquals(newArrayList(WILDCARD_TYPE), methodDescriptor.consumes());
    assertEquals(newArrayList(new MediaType("application", "vnd.sun.wadl+xml")), methodDescriptor.produces());
    assertEquals(SampleRootResource.class, methodDescriptor.getParentResource().getObjectClass());
    assertTrue(methodDescriptor.getMethodParameters().isEmpty());
}