GeoServerRestClient { public Response getCoverages(final String workspaceName, final String cvsstoreName) { final Response resp = getWebTarget().path( "rest/workspaces/" + workspaceName + "/coveragestores/" + cvsstoreName + "/coverages.json").request().get(); if (resp.getStatus() == Status.OK.getStatusCode()) { resp.bufferEntity(); final JSONArray coveragesArray = getArrayEntryNames( JSONObject.fromObject(resp.readEntity(String.class)), "coverages", "coverage"); final JSONObject dsObj = new JSONObject(); dsObj.put("coverages", coveragesArray); return Response.ok(dsObj.toString(defaultIndentation)).build(); } return resp; } private  GeoServerRestClient(final GeoServerConfig config, final Console console); private  GeoServerRestClient(
      final GeoServerConfig config,
      final WebTarget webTarget,
      final Console console); static GeoServerRestClient getInstance(
      final GeoServerConfig config,
      final Console console); void setWebTarget(final WebTarget webTarget); static void invalidateInstance(); GeoServerConfig getConfig(); Response addLayer(
      final String workspaceName,
      final String storeName,
      final String adapterId,
      final String defaultStyle); boolean workspaceExists(String workspace); Response getWorkspaces(); Response addWorkspace(final String workspace); Response deleteWorkspace(final String workspace); Response getDatastore(
      final String workspaceName,
      final String datastoreName,
      final boolean quietOnNotFound); Response getDatastores(final String workspaceName); Response addDatastore(
      final String workspaceName,
      String datastoreName,
      final String gwStoreName); Response deleteDatastore(final String workspaceName, final String datastoreName); Response getFeatureLayer(final String layerName, final boolean quietOnNotFound); Response getFeatureLayers(
      final String workspaceName,
      final String datastoreName,
      final boolean geowaveOnly); Response addFeatureLayer(
      final String workspaceName,
      final String datastoreName,
      final String layerName,
      final String defaultStyle); Response deleteFeatureLayer(final String layerName); Response setLayerStyle(final String layerName, final String styleName); Response getStyle(
      @PathParam("styleName") final String styleName,
      final boolean quietOnNotFound); Response getStyles(); Response addStyle(final String styleName, final InputStream fileInStream); Response deleteStyle(final String styleName); Response getCoverageStore(
      final String workspaceName,
      final String coverageName,
      final boolean quietOnNotFound); Response getCoverageStores(final String workspaceName); Response addCoverageStore(
      final String workspaceName,
      String cvgStoreName,
      final String gwStoreName,
      final Boolean equalizeHistogramOverride,
      final String interpolationOverride,
      final Boolean scaleTo8Bit); Response deleteCoverageStore(final String workspaceName, final String cvgstoreName); Response getCoverages(final String workspaceName, final String cvsstoreName); Response getCoverage(
      final String workspaceName,
      final String cvgStoreName,
      final String coverageName,
      final boolean quietOnNotFound); Response addCoverage(
      final String workspaceName,
      final String cvgStoreName,
      final String coverageName); Response deleteCoverage(
      final String workspaceName,
      final String cvgstoreName,
      final String coverageName); DataStorePluginOptions getStorePlugin(final String storeName); ArrayList<String> getStoreAdapters(final String storeName, final String adapterId);  }
@Test public void testGetCoverages() { client.getCoverages("some_workspace", "some_cvgStore"); Mockito.verify(webTarget).path( "rest/workspaces/some_workspace/coveragestores/some_cvgStore/coverages.json"); }