### Question:
ReconnectFilter extends GenericFilterBean { protected boolean shouldPerformRefreshPostRequest(HttpServletRequest request) { String servletPath = request.getServletPath(); return request.getMethod().equalsIgnoreCase(GET) && servletPath != null && servletPath.startsWith(CONNECT_PATH) && request.getParameter(RECONNECT_PARAMETER) != null; } ReconnectFilter(UsersConnectionRepository usersConnectionRepository, UserIdSource userIdSource); void doFilter(ServletRequest request, ServletResponse response, FilterChain chain);  }### Answer:
@Test public void shouldPerformRefreshPostRequest() throws Exception { performFilterForPostRequest("/connect/google", "google"); performFilterForPostRequest("/connect/google/", "google"); }