@Test
public void testNotBearerAuthorizationHeader() throws ServletException, IOException {

    Mockito.when(mockHttpServletRequest.getHeader(JwtFilter.HEADER_AUTHORIZATION)).thenReturn(HEADER_NOT_BEARER);
    jwtFilter.doFilterInternal(mockHttpServletRequest, mockHttpServletResponse, mockFilterChain);
    Mockito.verify(mockHttpServletRequest).getMethod();
    Mockito.verify(mockHttpServletRequest).setAttribute(JwtFilter.JWT_ATTRIBUTE,
        new DefaultClaims().setSubject(JwtFilter.SUBJECT_ANONYMOUS));
    Mockito.verify(mockHttpServletResponse).setHeader(JwtFilter.JWT_TOKEN, "");
    Mockito.verify(mockHttpServletRequest).getHeader(JwtFilter.HEADER_AUTHORIZATION);
    Mockito.verify(mockHttpServletResponse).setHeader(JwtFilter.HEADER_CLAIMS_SUBJECT, JwtFilter.SUBJECT_ANONYMOUS);
    Mockito.verify(mockFilterChain).doFilter(mockHttpServletRequest, mockHttpServletResponse);
    Mockito.verify(mockHttpServletResponse, Mockito.times(4)).setHeader(ArgumentMatchers.anyString(),
        ArgumentMatchers.any());
}