@Test
public void testIntersectingPoly() {

  final SimpleFeature feature1 =
      createFeature(
          factory.createPolygon(
              new Coordinate[] {
                  new Coordinate(0.000, 0.000),
                  new Coordinate(0.0012, 0.000),
                  new Coordinate(0.0013, 0.0015),
                  new Coordinate(0.00, 0.00)}));
  final SimpleFeature feature2 =
      createFeature(
          factory.createPolygon(
              new Coordinate[] {
                  new Coordinate(0.001, 0.001),
                  new Coordinate(0.002, 0.001),
                  new Coordinate(0.002, 0.002),
                  new Coordinate(0.001, 0.001)}));
  testBounds(functionUnderTest.measure(feature1, feature2), 0, 0.00001);
  final SimpleFeature feature3 =
      createFeature(
          factory.createPolygon(
              new Coordinate[] {
                  new Coordinate(0.000, 0.000),
                  new Coordinate(0.001, 0.001),
                  new Coordinate(0.000, 0.001),
                  new Coordinate(0.00, 0.00)}));
  final SimpleFeature feature4 =
      createFeature(
          factory.createPolygon(
              new Coordinate[] {
                  new Coordinate(0.001, 0.001),
                  new Coordinate(0.002, 0.001),
                  new Coordinate(0.002, 0.002),
                  new Coordinate(0.001, 0.001)}));
  testBounds(functionUnderTest.measure(feature3, feature4), 0.0, 0.00001);
}