@Test
public void testACLDigestHashHiding_OnlyAdmin() {

    // Arrange
    testACLs.clear();
    testACLs.addAll(Arrays.asList(
            new ACL(ZooDefs.Perms.READ, new Id("digest", "user:secrethash")),
            new ACL(ZooDefs.Perms.ADMIN, new Id("digest", "adminuser:adminsecret"))
    ));
    List<Id> authInfo = new ArrayList<Id>();
    authInfo.add(new Id("digest", "adminuser:adminsecret"));
    // Act
    Request r = new Request(cnxn, 0, 0, ZooDefs.OpCode.getACL, bb, authInfo);
    processor.processRequest(r);
    // Assert
    assertTrue("Not a GetACL response. Auth failed?", responseRecord[0] instanceof GetACLResponse);
    GetACLResponse rsp = (GetACLResponse)responseRecord[0];
    assertThat("Number of ACLs in the response are different", rsp.getAcl().size(), equalTo(2));
    // Verify ACLs in the response
    assertThat("Password hash mismatch in the response", rsp.getAcl().get(0).getId().getId(), equalTo("user:secrethash"));
    assertThat("Password hash mismatch in the response", rsp.getAcl().get(1).getId().getId(), equalTo("adminuser:adminsecret"));
}