@Test
public void testWhatFilterSimple() throws Exception
{

    System.out.println( "\n--> testWhatFilter" );
    String filter = "(objectclass=*)";
    // Create parser
    OpenLdapAclParser parser = new OpenLdapAclParser();
    // Testing the ACL item
    AclItem aclItem = parser.parse( "access to filter=" + filter + " by *" );
    assertNotNull( aclItem );
    // Testing the 'what' clause
    AclWhatClause whatClause = aclItem.getWhatClause();
    assertNotNull( whatClause );
    assertTrue( whatClause instanceof AclWhatClauseFilter );
    
    AclWhatClauseFilter whatClauseFilter = (AclWhatClauseFilter) whatClause;
    // test the content
    assertEquals( filter, whatClauseFilter.getFilter() );
    System.out.println( "<-- ACL:" + aclItem );
}