public void generateAcknowledgementPayload(
            MllpSocketBuffer mllpSocketBuffer, byte[] hl7MessageBytes, String acknowledgementCode)
            throws MllpAcknowledgementGenerationException {
        generateAcknowledgementPayload(mllpSocketBuffer, hl7MessageBytes, acknowledgementCode, null);
    }
@Test
    public void testGenerateAcknowledgementPayloadFromEmptyMessage() {
        MllpSocketBuffer mllpSocketBuffer = new MllpSocketBuffer(new MllpEndpointStub());
        assertThrows(MllpAcknowledgementGenerationException.class,
                () -> hl7util.generateAcknowledgementPayload(mllpSocketBuffer, new byte[0], "AA"));
    }