@Test
public void pastWeather() {

    Iterable<WeatherInfo> infos = new WeatherWebApi(new MockRequest())
            .pastWeather(37.017,-7.933, parse("2019-02-01"), parse("2019-02-28"));
    Iterator<WeatherInfo> iter = infos.iterator();
    assertNotNull(infos);
    assertTrue(iter.hasNext());
    WeatherInfo wi = iter.next();
    assertEquals(parse("2019-02-01"), wi.getDate());
    assertEquals(14, wi.getTempC());
    assertEquals(13.8, wi.getPrecipMM());
    assertEquals("Patchy rain possible", wi.getDesc());
}