@Test
public void search() {

    Iterable<LocationInfo> infos = new WeatherWebApi(new MockRequest())
            .search("Oporto");
    Iterator<LocationInfo> iter = infos.iterator();
    assertNotNull(infos);
    assertTrue(iter.hasNext());
    LocationInfo li = iter.next();
    assertEquals(li.getCountry(), "Spain");
    assertEquals(li.getRegion(), "Galicia");
    assertEquals(li.getLatitude(), 42.383);
    assertEquals(li.getLongitude(), -7.100);
}