@Test
public void convertsXmlToJson() throws Exception {
final XML xml = new XMLDocument(
"<user><name>Jeff</name><dept><title>IT</title></dept></user>"
);
final JsonObject json = new JsonNode(xml.nodes("user").get(0)).json();
MatcherAssert.assertThat(json, Matchers.notNullValue());
MatcherAssert.assertThat(
json.getString("name"),
Matchers.equalTo("Jeff")
);