@Test
public void testReadJsonObjectFromValue() throws Exception {

    final JsonObject expectSameObject = key("foo", "one").key("bar", "two").get();
    assertSame("same json object", expectSameObject, converter().readJsonObjectFromValue("key", expectSameObject));
    assertSame("null value is JsonValue.NULL", JsonValue.NULL,
            converter().readJsonObjectFromValue("key", null));
    assertEquals("json object as string is equal", expectSameObject,
            converter().readJsonObjectFromValue("key", expectSameObject.toString()));
}