@Test
public void testService() throws Exception {

	Authentication auth = new Authentication();
	String token = tokenService.login(auth);
	Authentication res = staticSecurityService.getAuthentication(token);
	Assert.assertEquals(auth, res);
	tokenService.logout(token);
	res = staticSecurityService.getAuthentication(token);
	Assert.assertNull(res);
}