PasswordChangeUiRequiredFilter extends OncePerRequestFilter { protected boolean isIgnored(HttpServletRequest request) { return ignorePath.matches(request); } PasswordChangeUiRequiredFilter(final UaaSavedRequestCache cache);   }
@Test void isIgnored() { for (String s : Arrays.asList("/login/mfa", "/login/mfa/register", "/login/mfa/verify.do")) { mockHttpServletRequest.setPathInfo(s); assertThat("Is ignored:" + s, passwordChangeUiRequiredFilter.isIgnored(mockHttpServletRequest), is(true)); } }