MuleMessage response = client.send(endpointUri, JSON_REQUEST, null, TIMEOUT);
assertThat(response, IsNull.<Object>notNullValue());
// compare the structure and values but not the attributes' order
ObjectMapper mapper = new ObjectMapper();
JsonNode actualJsonNode = mapper.readTree(response.getPayloadAsString());
JsonNode expectedJsonNode = mapper.readTree(JSON_RESPONSE);
assertThat(actualJsonNode, Is.is(expectedJsonNode));
}
public static final String MESSAGE = "some message";
public static final String MESSAGE_EXPECTED = "some message consumed successfully";