DataHistoricalTimeSeriesResource extends AbstractDocumentDataResource<HistoricalTimeSeriesInfoDocument> { @DELETE public void remove() { super.remove(); } DataHistoricalTimeSeriesResource();  DataHistoricalTimeSeriesResource(final DataHistoricalTimeSeriesMasterResource htsResource, final ObjectId infoId); DataHistoricalTimeSeriesMasterResource getParentResource(); ObjectId getUrlId(); HistoricalTimeSeriesMaster getMaster(); @GET @Path("versions") Response history(@Context UriInfo uriInfo); @GET Response get(@QueryParam("versionAsOf") String versionAsOf, @QueryParam("correctedTo") String correctedTo); @POST Response update(@Context UriInfo uriInfo, HistoricalTimeSeriesInfoDocument request); @DELETE void remove(); @GET @Path("versions/{versionId}") Response getVersioned(@PathParam("versionId") String versionId); @PUT @Path("versions/{versionId}") Response replaceVersion(@PathParam("versionId") String versionId, List<HistoricalTimeSeriesInfoDocument> replacementDocuments); @PUT Response replaceVersions(List<HistoricalTimeSeriesInfoDocument> replacementDocuments); @PUT @Path("all") Response replaceAllVersions(List<HistoricalTimeSeriesInfoDocument> replacementDocuments);  }
@Test public void testDeleteHistoricalTimeSeries() { _resource.remove(); verify(_underlying).remove(OID.atLatestVersion()); }