### Question:
AppInfos { public LatestVersionInfo getDesktop() { return desktop; } AppInfos(LatestVersionInfo desktop, LatestVersionInfo android); LatestVersionInfo getDesktop(); LatestVersionInfo getAndroid();  }### Answer:
@Test public void testStructure() { String response = "{\n" + " \"appinfos\": {\n" + " \"android\": {\n" + " \"currentAppVersion\": 91,\n" + " \"minimumAppVersion\": 89,\n" + " \"downloadURL\": \"http: " },\n" + " \"desktop\": {\n" + " \"currentAppVersion\": \"0.2.0\",\n" + " \"minimumAppVersion\": \"0.2.0\",\n" + " \"downloadURL\": \"http: " }\n" + " }\n" + "}"; VersionInformation info = new Gson().fromJson(response, VersionInformation.class); assertNotNull(info); assertNotNull(info.getAppinfos()); assertNotNull(info.getAppinfos().getDesktop()); LatestVersionInfo desktopVersion = info.getAppinfos().getDesktop(); assertEquals("0.2.0", desktopVersion.getCurrentAppVersion()); assertEquals("0.2.0", desktopVersion.getMinimumAppVersion()); assertEquals("http: }