### Question:
SocialProfile extends TypedData { public URI getUrl() { return url; } SocialProfile(); String getType(); String getId(); String getName(); String getUsername(); URI getUrl(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }### Answer:
@Test public void testURLMarshalling() throws Exception { String json = load("social_profile_url_1.json"); SocialProfile socialProfile = mapper.readValue(json, SocialProfile.class); assertTrue(socialProfile.getUrl() != null); json = load("social_profile_url_2.json"); socialProfile = mapper.readValue(json, SocialProfile.class); assertTrue(socialProfile.getUrl() != null); json = load("social_profile_url_3.json"); socialProfile = mapper.readValue(json, SocialProfile.class); assertTrue(socialProfile.getUrl() == null); json = load("social_profile_url_4.json"); socialProfile = mapper.readValue(json, SocialProfile.class); assertTrue(socialProfile.getUrl() != null); }