@Test
public void testLongitude() {

  final NumericDimensionField[] fields =
      new NumericDimensionField[] {new LongitudeField(GeometryUtils.MAX_GEOMETRY_PRECISION)};
  final Geometry geo =
      factory.createLineString(
          new Coordinate[] {
              new Coordinate(-99.22, 33.75000000000001), // notice
              // that
              // this gets
              // tiled as
              // 33.75
              new Coordinate(-99.15, 33.75000000000001)
          // notice that this gets tiled as 33.75
          });
  final GeometryWrapper wrapper = new GeometryWrapper(geo);
  NumericRange rangeData = new NumericRange(-99.15 - (1E-10d), -99.140348473);
  assertTrue(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(-99.15 + (1E-10d), -99.140348473);
  assertFalse(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(-99.23, -99.22 + (1E-9d));
  assertTrue(wrapper.overlaps(fields, new NumericData[] {rangeData}));
  rangeData = new NumericRange(-99.23, -99.22 - (1E-10d));
  assertFalse(wrapper.overlaps(fields, new NumericData[] {rangeData}));
}