List<Authentication> auths = new ArrayList<Authentication>();
auths.add(auth);
securityContext.setAuthentications(token, auths);
Assert.assertEquals(token, securityContext.getToken());
EmptyCommandRequest request = new EmptyCommandRequest();
SuccessCommandResponse response = logoutCommand.getEmptyCommandResponse();
logoutCommand.execute(request, response);
Assert.assertTrue(response.isSuccess());
Assert.assertNull(tokenService.getAuthentication(token));
}