InMemorySecurityMaster extends SimpleAbstractInMemoryMaster<SecurityDocument> implements SecurityMaster { @Override public void remove(final ObjectIdentifiable objectIdentifiable) { ArgumentChecker.notNull(objectIdentifiable, "objectIdentifiable"); SecurityDocument removedDocument = _store.remove(objectIdentifiable.getObjectId()); if (removedDocument == null) { throw new DataNotFoundException("Security not found: " + objectIdentifiable); } _changeManager.entityChanged(ChangeType.REMOVED, objectIdentifiable.getObjectId(), null, null, Instant.now()); _externalIdCache.remove(removedDocument.getSecurity()); } InMemorySecurityMaster();  InMemorySecurityMaster(final ChangeManager changeManager);  InMemorySecurityMaster(final Supplier<ObjectId> objectIdSupplier);  InMemorySecurityMaster(final Supplier<ObjectId> objectIdSupplier, final ChangeManager changeManager); @Override SecurityMetaDataResult metaData(final SecurityMetaDataRequest request); @Override SecuritySearchResult search(final SecuritySearchRequest request); @Override SecurityDocument get(final UniqueId uniqueId); @Override SecurityDocument get(final ObjectIdentifiable objectId, final VersionCorrection versionCorrection); @Override SecurityDocument add(final SecurityDocument document); @Override SecurityDocument update(final SecurityDocument document); @Override void remove(final ObjectIdentifiable objectIdentifiable); @Override SecurityDocument correct(final SecurityDocument document); @Override SecurityHistoryResult history(final SecurityHistoryRequest request); static final String DEFAULT_OID_SCHEME; }
@Test(expectedExceptions = DataNotFoundException.class) public void test_remove_emptyMaster() { testEmpty.remove(OTHER_UID); }