public String generateInvalidPayloadExceptionMessage(final byte[] hl7Bytes) {
        if (hl7Bytes == null) {
            return "HL7 payload is null";
        }

        return generateInvalidPayloadExceptionMessage(hl7Bytes, hl7Bytes.length);
    }
@Test
    public void testGenerateInvalidPayloadExceptionMessageWithEmptyPayload() {
        byte[] payload = new byte[0];

        assertEquals("HL7 payload is empty", hl7util.generateInvalidPayloadExceptionMessage(payload));
        assertEquals("HL7 payload is empty", hl7util.generateInvalidPayloadExceptionMessage(payload, payload.length));
    }