### Question:
XMLStorage implements IStorage { @Override public WeightList readWeightList(String source) throws STException { return xmlWeightList.readWeightList(source); } XMLStorage(); @Override SportTypeList readSportTypeList(String source, SpeedMode defaultSpeedMode); @Override void storeSportTypeList(SportTypeList sportTypeList, String destination); @Override ExerciseList readExerciseList(String source, SportTypeList sportTypeList); @Override void storeExerciseList(ExerciseList exerciseList, String destination); @Override NoteList readNoteList(String source); @Override void storeNoteList(NoteList noteList, String destination); @Override WeightList readWeightList(String source); @Override void storeWeightList(WeightList weightList, String destination);  }### Answer:
@Test public void testReadWeightList() throws STException { WeightList weightList = storage.readWeightList("misc/testdata/weights-valid.xml"); checkWeightListContent(weightList); WeightList weightListEmpty = storage.readWeightList("misc/testdata/weights-xyz.xml"); assertEquals(0, weightListEmpty.size()); assertThrows(STException.class, () -> storage.readWeightList("misc/testdata/weights-invalid.xml")); }