@Test
public void mustFilterNonHttpsRequests() throws Exception {

  SecurityFilter filter = new SecurityFilter();
  MockHttpServletRequest request = this.getDefaultRequest();
  request.setRequestURI("/certs/");
  request.setScheme("http");
  MockHttpServletResponse response = new MockHttpServletResponse();
  request.setLocalPort(8440);
  MockFilterChain chain = new MockFilterChain();
  filter.doFilter(request, response, chain);
  assertNull(chain.getRequest());
  assertNull(chain.getResponse());
}