}
public static <T> void assertJsonEncode(T pojo, Object expected, String message)
{
try {
String json = new ObjectMapperProvider().get().enable(INDENT_OUTPUT).writeValueAsString(pojo);
StringBuilder builder = new StringBuilder();
if (message != null) {
builder.append(message).append(' ');
}
builder.append("JSON encoding ").append(json);