@Test
public void domainIntersectsBoundingBox() throws Exception {

    String test = "POLYGON ((40 -86, 40 -20, 70 -20, 70 -86, 40 -86))";
    Geometry bbox = wktReader.read(test);
    bbox.setSRID(4326);
    String result = wktWriter.write(MapRenderer.computeGeomInDomainOfValidity(bbox, Region.decodeCRS("EPSG:3857")));
    assertEquals("POLYGON ((40 -85.06, 40 -20, 70 -20, 70 -85.06, 40 -85.06))", result);
}