List<AccessedObject> accesses = detail.getAccessedObjects();
assertTrue("Expected " + numExpected + " accesses, found " +
accesses.size(),
numExpected == accesses.size());
for (int i = 0; i < expected.length; i += 4) {
AccessedObject result = accesses.get(i / 4);
assertEquals(expected[i], result.getSource());
assertEquals(expected[i + 1], result.getObjectId());
assertEquals(expected[i + 2], result.getAccessType());
assertEquals(expected[i + 3], result.getDescription());
}
}