@Test
public void denysAccessWhenDenyAllAnnotationPresents() {

    when(resourceMethod.getAnnotations()).thenReturn(new Annotation[] {denyAll});
    thrown.expect(webApplicationExceptionForbiddenMatcher());
    securityConstraint.accept(resourceMethod, null);
}