IcndbJoke { public String getJoke() { return value.getJoke(); }  String getJoke(); String getType(); void setType(String type); Joke getValue(); void setValue(Joke value);  }
@Test public void testGetJoke() throws Exception { Gson gson = new Gson(); IcndbJoke icndbJoke = gson.fromJson(jsonTxt, IcndbJoke.class); String correct = "Xav Ducrohet writes code that optimizes itself."; assertNotNull(icndbJoke); assertEquals(correct, icndbJoke.getJoke()); }