@Test
public void allowsAccessWhenPermitAllAnnotationPresents() {

    when(resourceMethod.getAnnotations()).thenReturn(new Annotation[] {permitAll});
    securityConstraint.accept(resourceMethod, null);
}