QueryBuilder queryBuilder =
new QueryBuilder (
restTemplate,
"http://api.worldbank.org/");
DataPoints result = queryBuilder
.countries("br", "gb")
.indicators("SP.POP.TOTL")
.setDate("1998:2003")
.doGet(DataPoints.class);
assertEquals (
"http://api.worldbank.org/countries/br;gb/indicators/SP.POP.TOTL?" +
"date=1998:2003",
queryBuilder.getEscapedURI());
assertNotNull (result);
reviewPaginationProperties (1, 1, 50, 12, result);
List<DataPoint> dataPointList = result.getDataPointList();
assertEquals(12, dataPointList.size());
DataPoint dataPoint = dataPointList.get(4);