assertEquals("localhost", ssh.host);
}
@Test
public void testDoFilter() throws Exception {
SendServerHeader ssh = new SendServerHeader();
ssh.init(null);
HttpServletRequest request = createMock(HttpServletRequest.class);
HttpServletResponse response = createMock(HttpServletResponse.class);
FilterChain chain = createMock(FilterChain.class);
response.setHeader("X-Via-Server", ssh.host);
response.setHeader("Via", "Middleman/1.0");
chain.doFilter(request, response);
replay(request, response, chain);
ssh.doFilter(request, response, chain);
}