### Question:
AclEntryImpl implements AclEntry, Serializable { public synchronized boolean addPermission( final Permission permission ) { if( permission instanceof PagePermission && findPermission( permission ) == null ) { m_permissions.add( permission ); return true; } return false; } AclEntryImpl(); synchronized boolean addPermission( final Permission permission ); boolean checkPermission( final Permission permission ); synchronized Principal getPrincipal(); Enumeration< Permission > permissions(); synchronized boolean removePermission( final Permission permission ); synchronized boolean setPrincipal( final Principal user ); String toString();  }### Answer:
@Test public void testAddPermission() { m_ae.addPermission( PagePermission.VIEW ); Assertions.assertTrue( m_ae.checkPermission( PagePermission.VIEW ), "no permission" ); Assertions.assertFalse( m_ae.checkPermission( PagePermission.EDIT ), "permission found" ); }