    @Test
    void shouldDenyNonHttpRequest() {

        assertThrows(IllegalArgumentException.class, () ->
                filter.doFilter(mock(ServletRequest.class), mock(HttpServletResponse.class), null));
    }