### Question:
DataObjectAuditAOImpl extends AbstractAuditAOImpl implements DataObjectAuditAO { @Override public AuditedAction getAuditedActionForDataObject(final IRODSFile irodsFile, final String auditActionCode, final String timeStampInIRODSFormat) throws DataNotFoundException, JargonException { log.info("getAuditedActionForDataObject()"); return super.getAuditedActionForFile(irodsFile, auditActionCode, timeStampInIRODSFormat); } protected  DataObjectAuditAOImpl(final IRODSSession irodsSession, final IRODSAccount irodsAccount); @Override AuditedAction getAuditedActionForDataObject(final IRODSFile irodsFile, final String auditActionCode,
			final String timeStampInIRODSFormat); @Override List<AuditedAction> findAllAuditRecordsForDataObject(final IRODSFile irodsFile, final int partialStart,
			final int numberOfResultsDesired); static final Logger log; static final char COMMA; }### Answer:
@Test(expected = FileNotFoundException.class) public void testFindAuditRecordForDataObjectNotExists() throws Exception { if (!testingPropertiesHelper.isTestAudit(testingProperties)) { throw new FileNotFoundException("expected"); } String testFileName = System.currentTimeMillis() + "testFindAuditRecordForDataObject.txt"; String targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties( testingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName); IRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties); IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory(); IRODSFileFactory irodsFileFactory = accessObjectFactory.getIRODSFileFactory(irodsAccount); IRODSFile destFile = irodsFileFactory.instanceIRODSFile(targetIrodsFile); DataObjectAuditAO dataObjectAuditAO = accessObjectFactory.getDataObjectAuditAO(irodsAccount); dataObjectAuditAO.getAuditedActionForDataObject(destFile, "99999", "9999"); }
@Test(expected = IllegalArgumentException.class) public void testFindAuditRecordForDataObjectNullIrodsFile() throws Exception { if (!testingPropertiesHelper.isTestAudit(testingProperties)) { throw new IllegalArgumentException("expected"); } IRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties); IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory(); DataObjectAuditAO dataObjectAuditAO = accessObjectFactory.getDataObjectAuditAO(irodsAccount); dataObjectAuditAO.getAuditedActionForDataObject(null, "9", "9"); }