### Question:
AuditEventPublisherImpl implements AuditEventPublisher { @Override public void tryPublish(String topic, AuditEvent auditEvent) { try { String realm = getValue(auditEvent.getValue(), EVENT_REALM, null); if (isBlank(realm)) { publishToDefault(topic, auditEvent); } else { publishForRealm(realm, topic, auditEvent); } } catch (Exception e) { logException(e, topic, auditEvent); } } @Inject  AuditEventPublisherImpl(AuditServiceProvider auditServiceProvider); @Override void tryPublish(String topic, AuditEvent auditEvent); @Override boolean isAuditing(String realm, String topic, EventName eventName); @Override boolean isLtzEnabled();  }### Answer:
@Test public void shouldSuppressExceptionsOnPublish() throws Exception { AuditEvent auditEvent = getAuditEvent(FAILURE_SUPPRESSED_REALM); givenSuppressedFailureAuditService(); auditEventPublisher.tryPublish("unknownTopic", auditEvent); }