AssetsResource extends AssetsResourceSupport implements Resource, AssetsResourceDoc { @GET @Override public Page<AssetXO> getAssets( @Nullable @QueryParam("continuationToken") final String continuationToken, @QueryParam("repository") final String repositoryId) { Repository repository = repositoryManagerRESTAdapter.getRepository(repositoryId); List<FluentAsset> assets = browse(repository,continuationToken); return new Page<>(toAssetXOs(repository, assets), nextContinuationToken(assets)); } @Inject  AssetsResource(
      final RepositoryManagerRESTAdapter repositoryManagerRESTAdapter,
      final MaintenanceService maintenanceService,
      final ContentAuthHelper contentAuthHelper); @GET @Override Page<AssetXO> getAssets(
      @Nullable @QueryParam("continuationToken") final String continuationToken,
      @QueryParam("repository") final String repositoryId); @GET @Path("/{id}") @Override AssetXO getAssetById(@PathParam("id") final String id); @DELETE @Path("/{id}") @Override void deleteAsset(@PathParam("id") final String id);  }
@Test public void getAssetsShouldReturnAPageAssets() { Page<AssetXO> assets = underTest.getAssets(null, REPOSITORY_NAME); assertNotNull(assets); verify(fluentAssets).browse(LIMIT, null); }