MockHttpServletRequest request = new MockHttpServletRequest();
request.setMethod("GET");
request.setServletPath(servletPath);
request.addParameter("reconnect", "true");
MockHttpServletResponse response = new MockHttpServletResponse();
MockFilterChain chain = new MockFilterChain();
filter.doFilter(request, response, chain);
HttpServletRequest redirectRequest = (HttpServletRequest) chain.getRequest();
assertEquals("POST", redirectRequest.getMethod());
assertEquals(servletPath, redirectRequest.getServletPath());
verify(connRepo).removeConnections(providerId);
}