@Test
public void testGeocoder() {

	List<String> list = new ArrayList<String>();
	GetLocationResult[] result;
	list.clear();
	list.add("booischot");
	result = geocoder.getLocation(list, 500, null);
	Assert.assertNotNull("Geonames may be down", result);
	Assert.assertEquals(1,result.length);
	Assert.assertNotNull(result[0].getCoordinate());
	Assert.assertEquals(4.7751, result[0].getCoordinate().x, .00001);
	Assert.assertEquals(51.05219, result[0].getCoordinate().y, .00001);
	list.clear();
	list.add("london");
	result = geocoder.getLocation(list, 500, null);		
	Assert.assertNotNull("Geonames may be down", result);
	int londonWorldCount = result.length;
	Assert.assertTrue(londonWorldCount > 1);
	list.clear();
	list.add("london");
	list.add("UK");
	result = geocoder.getLocation(list, 500, null);
	Assert.assertNotNull("Geonames may be down", result);
	Assert.assertTrue(result.length > 1);
	Assert.assertTrue(result.length < londonWorldCount);
	list.clear();
	list.add("blablabla");
	result = geocoder.getLocation(list, 500, null);
	Assert.assertNotNull("Geonames may be down", result);
	Assert.assertTrue(0 == result.length);
}