### Question:
ClinicaltrialsImporter { public static Study getClinicaltrialsData(String url, boolean importResults) throws MalformedURLException, IOException { Study study = new Study("", new Indication(0l, "")); getClinicaltrialsData(study ,url, importResults); return study; } ClinicaltrialsImporter(Study study, ClinicalStudy studyImport, boolean importResults); static Study getClinicaltrialsData(String url, boolean importResults); void importStudy();  }### Answer:
@Test public void testGetClinicaltrialsDataFromUri() { try { ClinicaltrialsImporter.getClinicaltrialsData(d_testStudy, "https: } catch (Exception e) { e.printStackTrace(); } }
@Test public void testGetClinicaltrialsData(){ ClinicaltrialsImporter.getClinicaltrialsData(d_testStudy, getXMLResource("NCT00644527.xml"), true); testRetrievedStudy(); }
@Test public void testGetClinicaltrialsDataWithResults() { ClinicaltrialsImporter.getClinicaltrialsData(d_testStudy, getXMLResource("NCT00696436.xml"), true); WhenTaken wt = new WhenTaken(EntityUtil.createDuration("P0D"), RelativeTo.BEFORE_EPOCH_END, d_testStudy.getEpochs().get(1)); Arm arm1 = d_testStudy.getArms().get(0); Arm arm2 = d_testStudy.getArms().get(1); assertEquals("Azilsartan Medoxomil 40 mg QD", arm1.getName()); assertEquals("Azilsartan Medoxomil 80 mg QD", arm2.getName()); assertEquals(5, d_testStudy.getArms().size()); StudyOutcomeMeasure<? extends Variable> som1 = d_testStudy.getStudyOutcomeMeasures().get(0); assertTrue(som1.getNotes().get(0).getText().startsWith("Change From Baseline in the 24-hour Mean Systolic Blood Pressure Measured by Ambulatory Blood Pressure Monitoring.")); assertTrue(som1.getIsPrimary()); BasicContinuousMeasurement m1 = new BasicContinuousMeasurement(-13.42, 10.622, 237); BasicContinuousMeasurement m2 = new BasicContinuousMeasurement(-14.53, 10.623, 229); assertMeasurementEquals(m1, d_testStudy.getMeasurement(som1, arm1, wt)); assertMeasurementEquals(m2, d_testStudy.getMeasurement(som1, arm2, wt)); StudyOutcomeMeasure<? extends Variable> som2 = d_testStudy.getStudyOutcomeMeasures().get(1); assertTrue(som2.getNotes().get(0).getText().startsWith("Change From Baseline in Mean Trough Clinic Sitting Systolic Blood Pressure.")); assertFalse(som2.getIsPrimary()); BasicContinuousMeasurement m3 = new BasicContinuousMeasurement(-16.38, 15.728, 269); BasicContinuousMeasurement m4 = new BasicContinuousMeasurement(-16.74, 15.725, 270); assertMeasurementEquals(m3, d_testStudy.getMeasurement(som2, arm1, wt)); assertMeasurementEquals(m4, d_testStudy.getMeasurement(som2, arm2, wt)); }