public void generateAcknowledgementPayload(
            MllpSocketBuffer mllpSocketBuffer, byte[] hl7MessageBytes, String acknowledgementCode)
            throws MllpAcknowledgementGenerationException {
        generateAcknowledgementPayload(mllpSocketBuffer, hl7MessageBytes, acknowledgementCode, null);
    }
@Test
    public void testGenerateAcknowledgementPayloadWithoutEnoughFields() {
        final byte[] testMessage = TEST_MESSAGE.replace("||ORM^O01|00001|D|2.3|||||||", "").getBytes();

        MllpSocketBuffer mllpSocketBuffer = new MllpSocketBuffer(new MllpEndpointStub());
        assertThrows(MllpAcknowledgementGenerationException.class,
                () -> hl7util.generateAcknowledgementPayload(mllpSocketBuffer, testMessage, "AA"));
    }