### Question:
DetectorTemperatureProvider { private void readTemperatures(String resource) throws IOException { final InputStream inputStream = getClass().getResourceAsStream(resource); final InputStreamReader reader = new InputStreamReader(inputStream); final char[] separators = {' ', '\n'}; final CsvReader csvReader = new CsvReader(reader, separators, true, "#"); try { final List<double[]> lines = csvReader.readDoubleRecords(); int index = 0; for (double[] values : lines) { for (double value : values) { temperatures[index] = (float) value; index++; } } } finally { csvReader.close(); } } DetectorTemperatureProvider();   DetectorTemperatureProvider(String resourceName); static DetectorTemperatureProvider create(); float getDetectorTemperature(Date date); static final float FILL_VALUE; }### Answer:
@Test public void testReadTemperatures() throws Exception { final DetectorTemperatureProvider provider = getDetectorTemperatureProviderForTesting(); assertEquals(257.02, provider.temperatures[0], 0.001); assertEquals(255.81, provider.temperatures[11], 0.001); assertEquals(256.18, provider.temperatures[23], 0.001); assertEquals(255.82, provider.temperatures[35], 0.001); }