assertEquals(0, handler.getStarted());
assertEquals(0, handler.getEnded());
filter.doFilter(
new MockHttpServletRequest(),
new MockHttpServletResponse(),
new MockFilterChain());
assertEquals(1, handler.getStarted());
assertEquals(1, handler.getEnded());
filter.doFilter(
new MockHttpServletRequest(),
new MockHttpServletResponse(),
new MockFilterChain());
assertEquals(2, handler.getStarted());
assertEquals(2, handler.getEnded());
}