InMemorySnapshotMaster extends SimpleAbstractInMemoryMaster<MarketDataSnapshotDocument> implements MarketDataSnapshotMaster { @Override public MarketDataSnapshotDocument get(final UniqueId uniqueId) { ArgumentChecker.notNull(uniqueId, "uniqueId"); validateUniqueId(uniqueId); final MarketDataSnapshotDocument document = _store.get(uniqueId.getObjectId()); if (document == null || !document.getUniqueId().equals(uniqueId)) { throw new DataNotFoundException("Snapshot not found: " + uniqueId); } return document; } InMemorySnapshotMaster();  InMemorySnapshotMaster(final ChangeManager changeManager);  InMemorySnapshotMaster(final Supplier<ObjectId> objectIdSupplier);  InMemorySnapshotMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override MarketDataSnapshotSearchResult search(final MarketDataSnapshotSearchRequest request); @Override MarketDataSnapshotDocument get(final UniqueId uniqueId); @Override MarketDataSnapshotDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection); @Override MarketDataSnapshotDocument add(final MarketDataSnapshotDocument document); @Override MarketDataSnapshotDocument update(final MarketDataSnapshotDocument document); @Override void remove(ObjectIdentifiable objectIdentifiable); @Override MarketDataSnapshotDocument correct(final MarketDataSnapshotDocument document); @Override MarketDataSnapshotHistoryResult history(final MarketDataSnapshotHistoryRequest request); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_get_emptyMaster() { assertNull(_testEmpty.get(OTHER_UID)); }