### Question:
DbImaBaselineRecordManager extends DBManager<IMABaselineRecord> implements ImaBaselineRecordManager { @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); } } DbImaBaselineRecordManager(final SessionFactory sessionFactory); @Override IMABaselineRecord saveRecord(final IMABaselineRecord record); @Override IMABaselineRecord getRecord(final long id); @Override IMABaselineRecord getRecord(final String path, final Digest hash,
            final SimpleImaBaseline baseline); @Override boolean deleteRecord(final Long id); @Override boolean deleteRecord(final IMABaselineRecord record); final Collection<T> iterateOverBaselineRecords(
            final QueryableRecordImaBaseline baseline,
            final Callback<IMABaselineRecord, T> callback);  }### Answer:
@Test public void testDeleteUnknown() throws ImaBaselineRecordManagerException { LOGGER.debug("testDeleteUnknown test started"); final ImaBaselineRecordManager mgr = new DbImaBaselineRecordManager(sessionFactory); boolean deleted = mgr.deleteRecord(new IMABaselineRecord(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 ImaBaselineRecordManager mgr = new DbImaBaselineRecordManager(sessionFactory); boolean deleted = mgr.deleteRecord((IMABaselineRecord) null); Assert.assertFalse(deleted); }