### Question:
ObservationDownloader { static List<Observation> retrieveObservation(String loincCode) { List<Observation> results = new ArrayList<>(); Bundle bundle = client.search().forResource(Observation.class) .where(new TokenClientParam("code").exactly().systemAndCode(LOINC_SYSTEM, loincCode)) .prettyPrint() .returnBundle(Bundle.class) .execute(); while (true) { for (Bundle.BundleEntryComponent bundleEntryComponent : bundle.getEntry() ){ Observation observation = (Observation) bundleEntryComponent.getResource(); results.add(observation); } if (bundle.getLink(IBaseBundle.LINK_NEXT) != null){ bundle = client.loadPage().next(bundle).execute(); } else { break; } } return results; }  static void iteratorHapiFHIRServer();  }### Answer:
@Test @Disabled("This test tries to fetch observation from hapi-fhir test server, so the returning observations various") public void retrieveObservation() throws Exception { String testLoinc = "1558-6"; List<Observation> observations = ObservationDownloader.retrieveObservation( testLoinc); assertEquals(4, observations.size()); String testLoinc2 = "600-7"; observations = ObservationDownloader.retrieveObservation(testLoinc2); assertEquals(185, observations.size()); }