ObjectNode node = assertInstanceOf(ObjectNode.class, payload);
Iterator<String> fields = node.fieldNames();
assertEquals("foo", fields.next());
assertFalse(fields.hasNext());
TextNode text = assertInstanceOf(TextNode.class, node.get("foo"));
assertEquals("bar", text.textValue());
}
}