### Question:
AbstractAuditService extends ExternalTaskUtils { protected boolean didCreateAuditFail(AAIObjectAuditList auditList) { if (isAuditListNotNullAndNotEmpty(auditList)) { if (logger.isInfoEnabled()) { logger.info("Audit Results: {}", auditList.toString()); } return auditList.getAuditList().stream().filter(auditObject -> !auditObject.isDoesObjectExist()).findFirst() .map(v -> true).orElse(false); } else { return false; } } AbstractAuditService();  @Autowired
    public Environment env; }### Answer:
@Test public void didCreateAuditFail_shouldReturnFalse_whenGivenNull() { assertFalse(didCreateAuditFail(null)); }
@Test public void didCreateAuditFail_shouldReturnTrue_whenGivenNotExistingObject() { assertTrue(didCreateAuditFail(getAuditListWithObjectWithExistenceStateOf(false))); }
@Test public void didCreateAuditFail_shouldReturnFalse_whenGivenExistingObject() { assertFalse(didCreateAuditFail(getAuditListWithObjectWithExistenceStateOf(true))); }