@Test
public void testCheckAnonymousHeader() {

    Mockito.when(mockHttpServletResponse.getHeader(JwtFilter.HEADER_CLAIMS_SUBJECT))
        .thenReturn(JwtFilter.SUBJECT_ANONYMOUS);
    final LoginResponse loginResponse = userController.check(mockHttpServletResponse);
    assertNotNull(loginResponse);
    Mockito.verify(mockHttpServletResponse, Mockito.times(2)).getHeader(JwtFilter.HEADER_CLAIMS_SUBJECT);
    Mockito.verify(mockAuthenticationService).anonymousToken();
}