- AuthenticationService service = new AuthenticationService();
- assertEquals(service.authenticate(basicCred), true);
+ ServletRequest request = mock(ServletRequest.class);
+ AuthenticationService.getEnvironment();
+ assertTrue(AuthenticationService.checkPermissions(null, basicCred, "getConfig", "DEVL", request));