### Question:
AuditMessagePullFilter implements ObjectFilter { @Override public boolean shouldObjectBeSynced(Object object, String action) { AuditMessage auditMessage = (AuditMessage) object; return checkIfEntryAlreadyExists(auditMessage); }  @Override boolean shouldObjectBeSynced(Object object, String action);  }### Answer:
@Test public void shouldObjectBeSynced_shouldReturnTrueIfEntryAlreadyExists() { boolean fetched = auditMessagePullFilter.shouldObjectBeSynced(prepareDummyAuditMessage( EXISTING_ENTRY_UUID), SAMPLE_ACTION); Assert.assertTrue(fetched); }
@Test public void shouldObjectBeSynced_shouldReturnFalseIfEntryDoesNotExist() { boolean fetched = auditMessagePullFilter.shouldObjectBeSynced(prepareDummyAuditMessage( NEW_ENTRY_UUID2), SAMPLE_ACTION); Assert.assertFalse(fetched); }