PrincipalPermissionEntries { long getSize() { return entries.size() + emptyPaths.size(); } PrincipalPermissionEntries();   PrincipalPermissionEntries(long expectedSize);   }
@Test public void testGetInitialSize() { assertEquals(0, new PrincipalPermissionEntries().getSize()); assertEquals(0, new PrincipalPermissionEntries(1).getSize()); }
@Test public void testGetSize() { PrincipalPermissionEntries ppe = new PrincipalPermissionEntries(); ppe.putEntriesByPath("/path", ImmutableSet.of(permissionEntry)); assertEquals(1, ppe.getSize()); ppe.rememberNotAccessControlled("/path2"); assertEquals(2, ppe.getSize()); }