### Question:
ObservationDownloader { static String longestObservation(List<Observation> observations) { if (observations.isEmpty()) { throw new IllegalArgumentException("Empty list error!"); } String longest = null; int size = 0; for (Observation observation : observations) { String current = jsonParser.setPrettyPrint(true).encodeResourceToString(observation).trim(); if ((observation.hasValueQuantity() || observation.hasValueCodeableConcept()) && current.length() > size) { System.out.printf("Found a larger observation\ncurrent observation size : %d\n already found size: %d\n", current.length(), size); size = current.length(); longest = current; } } return longest; }  static void iteratorHapiFHIRServer();  }### Answer:
@Test @Disabled("same as above, can fail when server changes") public void longestObservation() throws Exception { String testLoinc = "600-7"; String longestObservation = ObservationDownloader.longestObservation(ObservationDownloader.retrieveObservation(testLoinc)); if (longestObservation != null) { System.out.println(longestObservation); } }