@Test
public void testFromJson() throws Exception
{

   String json =
      "{\"page\" : {\n" +
      "    \"name\" : \"home\",\n" +
      "    \"_ref\" : \"/pages/home\"\n" +
      "}}";
   ModelObject model = DmrModelValue.readFromJsonStream(new ByteArrayInputStream(json.getBytes()), ModelObject.class);
   ModelReference pageRef = model.get("page", ModelReference.class);
   assertNotNull(pageRef);
   assertEquals(pageRef.get("name", ModelString.class).getValue(), "home");
   assertEquals(PathAddress.pathAddress("pages", "home"), pageRef.getValue());
}