CommandResponse commandResponse = commandDispatcher.execute(GetLocationForStringRequest.COMMAND, request, null,
"en");
Assert.assertNotNull(commandResponse);
Assert.assertTrue(commandResponse instanceof GetLocationForStringResponse);
GetLocationForStringResponse response = (GetLocationForStringResponse)commandResponse;
Assert.assertTrue(response.isLocationFound());
Assert.assertEquals("one", response.getCanonicalLocation());
Assert.assertNotNull(response.getCenter());
Assert.assertNotNull(response.getBbox());
Assert.assertEquals(50000, response.getCenter().getX(), DELTA);
Assert.assertEquals(50000, response.getCenter().getY(), DELTA);
Assert.assertEquals(0, response.getBbox().getX(), DELTA);
Assert.assertEquals(0, response.getBbox().getY(), DELTA);
Assert.assertEquals(100000, response.getBbox().getWidth(), DELTA);
Assert.assertEquals(100000, response.getBbox().getHeight(), DELTA);
Assert.assertEquals("static-regex", response.getGeocoderName());
}