AuditRepositoryLogger { public LogEventRequestType logEntityAdminDist( gov.hhs.fha.nhinc.common.nhinccommonentity.RespondingGatewaySendAlertMessageType message, AssertionType assertion, String direction) { LOG.trace("Entering AuditRepositoryLogger.logEntityPatientDiscResp(...)"); LogEventRequestType auditMsg = null; try { EDXLDistribution body = message.getEDXLDistribution(); auditMsg = adAuditTransformer.transformEDXLDistributionRequestToAuditMsg(body, assertion, direction, NhincConstants.AUDIT_LOG_ENTITY_INTERFACE); } catch (NullPointerException ex) { LOG.error("The Incoming Send Alert message was Null", ex); } LOG.trace("Exiting AuditRepositoryLogger.logEntityPatientDiscResp(...)"); return auditMsg; } AuditRepositoryLogger(); LogEventRequestType logEntityAdminDist(
        gov.hhs.fha.nhinc.common.nhinccommonentity.RespondingGatewaySendAlertMessageType message,
        AssertionType assertion, String direction); LogEventRequestType logNhincAdminDist(EDXLDistribution message, AssertionType assertion,
        NhinTargetSystemType target, String direction, String _interface); LogEventRequestType logNhincAdminDist(EDXLDistribution message, AssertionType assertion, String direction,
        String _interface);  }
@Test public void logEntityAdminDist() { AuditRepositoryLogger logger = new AuditRepositoryLogger(); RespondingGatewaySendAlertMessageType adEntityMsg = mock(RespondingGatewaySendAlertMessageType.class); LogEventRequestType auditMsg = logger.logEntityAdminDist(adEntityMsg, createAssertionInfo(), "Inbound"); assertNotNull(auditMsg); assertEquals("Entity Inbound", auditMsg.getDirection()); }