@Test
public void testJsonValidationWithNestedArrays() {
JsonTextMessageValidator validator = new JsonTextMessageValidator();
Message receivedMessage = new DefaultMessage("{\"greetings\":[" +
"{\"text\":\"Hello World!\", \"index\":1}, " +
"{\"text\":\"Hallo Welt!\", \"index\":2}, " +
"{\"text\":\"Hola del mundo!\", \"index\":3}], \"id\":\"x123456789x\"}");
Message controlMessage = new DefaultMessage("{\"greetings\":[" +
"{\"text\":\"Hello World!\", \"index\":1}, " +
"{\"text\":\"Hallo Welt!\", \"index\":2}, " +
"{\"text\":\"Hola del mundo!\", \"index\":3}], \"id\":\"x123456789x\"}");
validator.validateMessagePayload(receivedMessage, controlMessage, context);