LoginResponse response = loginCommand.getEmptyCommandResponse();
loginCommand.execute(request, response);
String token = response.getToken();
Assert.assertNotNull(token);
Authentication auth = tokenService.getAuthentication(token);
Assert.assertEquals(1, auth.getAuthorizations().length);
BaseAuthorization authorizaton = auth.getAuthorizations()[0];
Assert.assertFalse(authorizaton.isToolAuthorized("bla"));
Assert.assertTrue(authorizaton.isCommandAuthorized("bla"));
Assert.assertFalse(authorizaton.isLayerVisible("bla"));
Assert.assertTrue(authorizaton.isLayerVisible("roads"));
Assert.assertTrue(authorizaton.isLayerVisible("rivers"));