@Test
public void testWhatDnBasicDnExact() throws Exception
{

    System.out.println( "\n--> testWhatDnBasicDnExact" );
    String dnPattern = "dc=example,dc=com";
    // Create parser
    OpenLdapAclParser parser = new OpenLdapAclParser();
    // Testing the ACL item
    AclItem aclItem = parser.parse( "access to dn.exact=\"" + dnPattern + "\" by *" );
    assertNotNull( aclItem );
    // Testing the 'what' clause
    AclWhatClause whatClause = aclItem.getWhatClause();
    assertNotNull( whatClause );
    assertTrue( whatClause instanceof AclWhatClauseDn );
    AclWhatClauseDn whatClauseDn = (AclWhatClauseDn) whatClause;
    // test the content
    assertEquals( dnPattern, whatClauseDn.getPattern() );
    assertEquals( AclWhatClauseDnTypeEnum.EXACT, whatClauseDn.getType() );
    System.out.println( "<-- ACL:" + aclItem );
}