WeatherFileReader { public List<TemperatureExtremum> readFile() throws IOException { return readLines(weatherFile, UTF_8, weatherFileLineProcessor); }  List<TemperatureExtremum> readFile();  }
@Test public void should_read_weather_dat_file() throws IOException { URL weatherFile = getResource("weather.dat"); WeatherFileLineProcessor weatherFileLineProcessor = new WeatherFileLineProcessor(); WeatherFileReader weatherFileReader = new WeatherFileReader(weatherFile, weatherFileLineProcessor); List<TemperatureExtremum> extrema = weatherFileReader.readFile(); assertThat(extrema).contains(new TemperatureExtremum(17, 81, 57)); }