class IcndbJoke {

    public String getJoke() {
        return value.getJoke();
    }

}

class IcndbJokeTest {

    private String jsonTxt;

    @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());
    }

}