@Test
public void testAuthName() throws Exception {

  String user = AuthorizationHelper.getAuthenticatedName();
  Assert.assertNull(user);
  Authentication auth = new UsernamePasswordAuthenticationToken("admin", null);
  SecurityContextHolder.getContext().setAuthentication(auth);
  user = AuthorizationHelper.getAuthenticatedName();
  Assert.assertEquals("admin", user);
}