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

    //GIVEN
    given(hostValidatorService.isRequestFromAdmin(servletRequest)).willReturn(false);
    given(servletResponse.getWriter()).willReturn(printWriter);
    //WHEN
    underTest.doFilter(servletRequest, servletResponse, filterChain);
    //THEN
    verify(filterChain, never()).doFilter(servletRequest, servletResponse);
}