@Test
public void processesSecurityAnnotationFromMethod() {

    ResourceDescriptor resource = new AbstractResourceDescriptor(ResourceWithMethodWithSecurityAnnotation.class);
    List<ResourceMethodDescriptor> resourceMethods = resource.getResourceMethods().get("GET");
    assertEquals(1, resourceMethods.get(0).getAnnotations().length);
    RolesAllowed rolesAllowed = (RolesAllowed)resourceMethods.get(0).getAnnotations()[0];
    assertNotNull(rolesAllowed);
}