@Test
public void testUpdateMarketDataSnapshot() {
final ManageableMarketDataSnapshot target = new ManageableMarketDataSnapshot();
target.setBasisViewName("Basis");
final MarketDataSnapshotDocument request = new MarketDataSnapshotDocument(target);
request.setUniqueId(OID.atLatestVersion());
final MarketDataSnapshotDocument result = new MarketDataSnapshotDocument(target);
result.setUniqueId(OID.atVersion("1"));
when(_underlying.update(same(request))).thenReturn(result);
Response test = _resource.update(_uriInfo, request);
assertEquals(Status.CREATED.getStatusCode(), test.getStatus());
assertSame(result, test.getEntity());