GeometryFactory geometryFactory = new GeometryFactory(precisionModel, LAYER_SRID);
Coordinate coordinate = new Coordinate();
coordinate.x = coordinate.y = 0.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 1.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 2.5;
Assert.assertTrue(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 3.5;
Assert.assertFalse(geometry.contains(geometryFactory.createPoint(coordinate)));
coordinate.x = coordinate.y = 4.5;