InMemoryLegalEntityMaster extends SimpleAbstractInMemoryMaster<LegalEntityDocument> implements LegalEntityMaster { @Override public LegalEntityDocument get(final UniqueId uniqueId) { return get(uniqueId, VersionCorrection.LATEST); } InMemoryLegalEntityMaster();  InMemoryLegalEntityMaster(final ChangeManager changeManager);  InMemoryLegalEntityMaster(final Supplier<ObjectId> objectIdSupplier);  InMemoryLegalEntityMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override LegalEntityMetaDataResult metaData(final LegalEntityMetaDataRequest request); @Override LegalEntitySearchResult search(final LegalEntitySearchRequest request); @Override LegalEntityDocument get(final UniqueId uniqueId); @Override LegalEntityDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection); @Override LegalEntityDocument add(final LegalEntityDocument document); @Override LegalEntityDocument update(final LegalEntityDocument document); @Override void remove(final ObjectIdentifiable objectIdentifiable); @Override LegalEntityDocument correct(final LegalEntityDocument document); @Override LegalEntityHistoryResult history(final LegalEntityHistoryRequest request); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_get_noMatch() { master.get(UniqueId.of("A", "B")); }