@Test
public void shouldNotInvokeFilterLogicWhenRequestIsForWhitelistedPath() throws ServletException {

    // given
    final LdapProperties ldapProperties = mockLdapPropertiesWithProtecedAndWhiteListedPath("/internal", "/internal/public");
    final LdapRoleAuthenticationFilter filter = new LdapRoleAuthenticationFilter(ldapProperties);
    final HttpServletRequest request = mockRequestWithPath("/internal/public");
    // when
    final boolean shouldInvokeFilterLogic = !filter.shouldNotFilter(request);
    // then
    assertFalse(shouldInvokeFilterLogic);
}