### Question:
CommonPermissionCheckingUtils { public boolean isAuthorizationDisabled(ProceedingJoinPoint proceedingJoinPoint) { return proceedingJoinPoint.getTarget().getClass().isAnnotationPresent(DisableCheckPermissions.class); }  @PostConstruct void init(); boolean legacyAuthorizationNeeded(); ResourceBasedCrnProvider getResourceBasedCrnProvider(AuthorizationResourceAction action); void checkPermissionForUser(AuthorizationResourceAction action, String userCrn); void checkPermissionForUserOnResource(Map<String, AuthorizationResourceAction> resourcesWithActions, String userCrn); void checkPermissionForUserOnResource(AuthorizationResourceAction action, String userCrn, String resourceCrn); void checkPermissionForUserOnResources(AuthorizationResourceAction action,
            String userCrn, Collection<String> resourceCrns); Map<String, Boolean> getPermissionsForUserOnResources(AuthorizationResourceAction action,
            String userCrn, List<String> resourceCrns); Object proceed(ProceedingJoinPoint proceedingJoinPoint, MethodSignature methodSignature, long startTime); boolean isAuthorizationDisabled(ProceedingJoinPoint proceedingJoinPoint); boolean isInternalOnly(ProceedingJoinPoint proceedingJoinPoint); T getParameter(ProceedingJoinPoint proceedingJoinPoint, MethodSignature methodSignature, Class annotation, Class<T> target);  }### Answer:
@Test public void testCheckIfAuthorizationDisabled() { when(proceedingJoinPoint.getTarget()).thenReturn(new ExampleDisabledAuthorizationResourceClass()); assertTrue(underTest.isAuthorizationDisabled(proceedingJoinPoint)); when(proceedingJoinPoint.getTarget()).thenReturn(new ExampleAuthorizationResourceClass()); assertFalse(underTest.isAuthorizationDisabled(proceedingJoinPoint)); }