### Question:
DbImaBlacklistBaselineRecordManager extends DBManager<ImaBlacklistRecord> implements ImaBlacklistBaselineRecordManager { @Override public boolean deleteRecord(final Long id) throws ImaBaselineRecordManagerException { LOGGER.debug("deleting ima baseline record: {}", id); try { return super.delete(id); } catch (DBManagerException e) { throw new ImaBaselineRecordManagerException(e); } } DbImaBlacklistBaselineRecordManager(final SessionFactory factory); @Override ImaBlacklistRecord saveRecord(final ImaBlacklistRecord record); @Override ImaBlacklistRecord getRecord(final long id); @Override ImaBlacklistRecord getRecord(final String path, final Digest hash,
            final ImaBlacklistBaseline baseline); @Override boolean deleteRecord(final Long id); @Override boolean deleteRecord(final ImaBlacklistRecord record); final Collection<T> iterateOverBaselineRecords(
            final QueryableRecordImaBaseline baseline,
            final Callback<ImaBlacklistRecord, T> callback);  }### Answer:
@Test public void testDeleteUnknown() throws ImaBaselineRecordManagerException { LOGGER.debug("testDeleteUnknown test started"); final ImaBlacklistBaselineRecordManager mgr = new DbImaBlacklistBaselineRecordManager(sessionFactory); boolean deleted = mgr.deleteRecord(new ImaBlacklistRecord(PATH, createDigest(HASH), "", baseline)); Assert.assertTrue(deleted); deleted = mgr.deleteRecord(2L); Assert.assertFalse(deleted); }
@Test(expectedExceptions = ImaBaselineRecordManagerException.class) public void testDeleteNull() throws ImaBaselineRecordManagerException { LOGGER.debug("testDelete test started"); final ImaBlacklistBaselineRecordManager mgr = new DbImaBlacklistBaselineRecordManager(sessionFactory); boolean deleted = mgr.deleteRecord((ImaBlacklistRecord) null); Assert.assertFalse(deleted); }