DataRegionResource extends AbstractDocumentDataResource<RegionDocument> { @DELETE public void remove() { super.remove(); } DataRegionResource();  DataRegionResource(final DataRegionMasterResource regionsResource, final ObjectId regionId); DataRegionMasterResource getRegionsResource(); ObjectId getUrlId(); @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, RegionDocument 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<RegionDocument> replacementDocuments); @PUT Response replaceVersions(List<RegionDocument> replacementDocuments); @PUT @Path("all") Response replaceAllVersions(List<RegionDocument> replacementDocuments);  }
@Test public void testDeleteRegion() { _resource.remove(); verify(_underlying).remove(OID.atLatestVersion()); }