@Test
public void testHasNonNull() {

    assertFalse("not hasNonNull on empty object for any key",
            hasNonNull(JsonValue.EMPTY_JSON_OBJECT, "any"));
    assertFalse("not hasNonNull for key with json null",
            hasNonNull(key("foo", null).get(), "foo"));
    assertTrue("hasNonNull for key with non-null json value",
            hasNonNull(key("foo", "bar").get(), "foo"));
}