PrincipalPermissionEntries { void putEntriesByPath(@NotNull String path, @NotNull Collection<PermissionEntry> pathEntries) { entries.put(path, pathEntries); if (entries.size() >= expectedSize) { setFullyLoaded(true); } } PrincipalPermissionEntries();   PrincipalPermissionEntries(long expectedSize);   }
@Test public void testPutEntriesByPath() { PrincipalPermissionEntries ppe = new PrincipalPermissionEntries(2); ppe.putEntriesByPath("/path", ImmutableSet.of(permissionEntry)); assertEquals(1, ppe.getEntries().size()); assertEquals(1, ppe.getSize()); }