throw new InvalidMessage("actual body length=" + actualBodyLength + ", expected body length=" + expectedBodyLength);
throw new InvalidMessage("Actual body length=" + actualBodyLength + ", Expected body length=" + expectedBodyLength);
    private void validate(String messageData) throws InvalidMessage {        try {            int expectedBodyLength = header.getInt(BodyLength.FIELD);            int actualBodyLength = bodyLength();            if (expectedBodyLength != actualBodyLength) {                throw new InvalidMessage("actual body length=" + actualBodyLength + ", expected body length=" + expectedBodyLength);            }            int checkSum = trailer.getInt(CheckSum.FIELD);            if (checkSum != checkSum(messageData)) {                throw new InvalidMessage("Expected CheckSum=" + checkSum(messageData) + ", Received CheckSum=" + checkSum);            }        } catch (FieldNotFound e) {            throw new InvalidMessage("Field not found: " + e.field);        } catch (InvalidMessage e) {            throw e;        }    }