### Question:
AuditMessagePushFilter implements ObjectFilter { @Override public boolean shouldObjectBeSynced(Object object, String action) { AuditMessage auditMessage = (AuditMessage) object; return checkIfEntryDoesNotDescribeAuditMessage(auditMessage); }  @Override boolean shouldObjectBeSynced(Object object, String action);  }### Answer:
@Test public void shouldObjectBeSynced_shouldReturnTrueIfEntryDoesNotDescribeAuditMessage() { boolean fetched = auditMessagePushFilter.shouldObjectBeSynced(prepareDummyAuditMessage( SyncCategoryConstants.CATEGORY_PATIENT), SAMPLE_ACTION); Assert.assertTrue(fetched); }
@Test public void shouldObjectBeSynced_shouldReturnFalseIfEntryDescribesAuditMessage() { boolean fetched = auditMessagePushFilter.shouldObjectBeSynced(prepareDummyAuditMessage( SyncCategoryConstants.CATEGORY_AUDIT_MESSAGE), SAMPLE_ACTION); Assert.assertFalse(fetched); }