@Test
public void domainContainsBoundingPolygon() throws Exception {

    String test = "POLYGON ((165 -83, 135 -76, 161 -76, 153 -81, 165 -83))";
    Geometry bbox = wktReader.read(test);
    bbox.setSRID(4326);
    String result = wktWriter.write(MapRenderer.computeGeomInDomainOfValidity(bbox, Region.decodeCRS("EPSG:3857")));
    assertEquals("POLYGON ((165 -83, 135 -76, 161 -76, 153 -81, 165 -83))", result);
}