@Test
public void testMergePolygon() throws Exception {

	MergePolygonRequest request = new MergePolygonRequest();
	GeometryFactory factory = new GeometryFactory();
	request.setPolygons(new Geometry[] {
			dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(0, 0)), 10, 10)),
			dtoConverter.toDto(geoService.createCircle(factory.createPoint(new Coordinate(5, 5)), 10, 10))});
	MergePolygonResponse response = (MergePolygonResponse) dispatcher.execute(
			MergePolygonRequest.COMMAND, request, null, "en");
	if (response.isError()) {
		response.getErrors().get(0).printStackTrace();
	}
	Assert.assertFalse(response.isError());
	Assert.assertNotNull(response.getGeometry());
	// @todo should verify that merge is correct
}