@Autowired
private DtoConverterService dtoConverter;
@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()) {