@Test
public void testCheckNotAnonymousHeader() {

    Mockito.when(mockHttpServletResponse.getHeader(JwtFilter.HEADER_CLAIMS_SUBJECT)).thenReturn("not anonymous");
    Mockito.when(mockHttpServletResponse.getHeader(JwtFilter.JWT_TOKEN)).thenReturn("token");

    final LoginResponse loginResponse = userController.check(mockHttpServletResponse);

    assertNotNull(loginResponse);

    Mockito.verify(mockHttpServletResponse, Mockito.times(2)).getHeader(JwtFilter.HEADER_CLAIMS_SUBJECT);
    Mockito.verify(mockHttpServletResponse).getHeader(JwtFilter.JWT_TOKEN);
}