StringBuilder feedback = new StringBuilder();
feedback.append("Complex Payload Event received.");
boolean failed = false;
ComposedObject value = (ComposedObject) request.getEvent().getValue();
if (!ComplexPayloadEventTest.TEST_COLOR.equals(value.getColor())) {
feedback.append(" Color DID NOT match expected value.");
failed = true;
}
if (!ComplexPayloadEventTest.TEST_POINT.equals(value.getPoint())) {
feedback.append(" Point DID NOT match expected value.");
failed = true;
}
if (!failed) {
feedback.append(" Payload matched expected values.");