Feature f1 = SimpleFeatureBuilder.build(type, new Object[] { "testFeature1", gf.createPoint(new Coordinate(10, 20, 30)) }, null);
Feature f2 = SimpleFeatureBuilder.build(type, new Object[] { "testFeature2", gf.createPoint(new Coordinate(10, 10, 60)) }, null);
BoundingBox3D envelope1 = new ReferencedEnvelope3D( 0, 50, 0, 50, 0, 50, null);
Filter bbox1 = ff.bbox(ff.property("geom"), envelope1);
BoundingBox3D envelope2 = new ReferencedEnvelope3D( 0, 50, 0, 50, 50, 100, null);
Filter bbox2 = ff.bbox(ff.property("geom"), envelope2);
assertTrue(bbox1.evaluate(f1));
assertFalse(bbox1.evaluate(f2));
assertFalse(bbox2.evaluate(f1));