SafeLdapFilter { public SafeLdapFilter not() { StringBundler sb = new StringBundler(_filterSB.index() + 3); sb.append(StringPool.OPEN_PARENTHESIS); sb.append(StringPool.EXCLAMATION); sb.append(_filterSB); sb.append(StringPool.CLOSE_PARENTHESIS); return new SafeLdapFilter(sb, new ArrayList<>(_arguments)); } protected  SafeLdapFilter(StringBundler filterSB, List<Object> arguments); SafeLdapFilter and(SafeLdapFilter... safeLdapFilters); Object[] getArguments(); String getFilterString(); SafeLdapFilter not(); SafeLdapFilter or(SafeLdapFilter... safeLdapFilters); @Override String toString();  }
@Test public void testNot() { SafeLdapFilter safeLdapFilter = SafeLdapFilterConstraints.eq( "key", "value"); test(safeLdapFilter.not(), "(!(key={0}))", "value"); }