OrganizationResourcesDistributor { public Page<? extends OrganizationDistributedResources> getByParent( String organizationId, int maxItems, long skipCount) throws ServerException { requireNonNull(organizationId, "Required non-null organization id"); return organizationDistributedResourcesDao.getByParent(organizationId, maxItems, skipCount); } @Inject  OrganizationResourcesDistributor(
      OrganizationDistributedResourcesDao organizationDistributedResourcesDao,
      OrganizationManager organizationManager,
      ResourcesLocks resourcesLocks,
      ResourceManager resourceManager,
      ResourceAggregator resourceAggregator); @Inject void subscribe(EventService eventService); void capResources(String suborganizationId, List<? extends Resource> resourcesCaps); List<? extends Resource> getResourcesCaps(String suborganizationId); OrganizationDistributedResources get(String suborganizationId); Page<? extends OrganizationDistributedResources> getByParent(
      String organizationId, int maxItems, long skipCount);  }
@Test(expectedExceptions = NullPointerException.class) public void shouldThrowNpeOnGettingDistributedResourcesByNullOrganizationId() throws Exception { manager.getByParent(null, 10, 10); }