DataMarketDataSnapshotMasterResource extends AbstractDataResource { @Path("snapshots/{snapshotId}") public DataMarketDataSnapshotResource findMarketDataSnapshot(@PathParam("snapshotId") String idStr) { ObjectId id = ObjectId.parse(idStr); return new DataMarketDataSnapshotResource(this, id); } DataMarketDataSnapshotMasterResource(final MarketDataSnapshotMaster snapshotMaster); MarketDataSnapshotMaster getMarketDataSnapshotMaster(); @GET Response getHateaos(@Context UriInfo uriInfo); @HEAD @Path("snapshots") Response status(); @POST @Path("snapshotSearches") Response search(MarketDataSnapshotSearchRequest request); @POST @Path("snapshots") Response add(@Context UriInfo uriInfo, MarketDataSnapshotDocument request); @Path("snapshots/{snapshotId}") DataMarketDataSnapshotResource findMarketDataSnapshot(@PathParam("snapshotId") String idStr); @Path("snapshots/changeManager") DataChangeManagerResource getChangeManager(); static URI uriSearch(URI baseUri); static URI uriAdd(URI baseUri);  }
@Test public void testFindMarketDataSnapshot() { DataMarketDataSnapshotResource test = _resource.findMarketDataSnapshot("Test~A"); assertSame(_resource, test.getMarketDataSnapshotsResource()); assertEquals(ObjectId.of("Test", "A"), test.getUrlId()); }