IsSimplePF extends GenericGeometryPropertyFunction { @Override protected NodeValue applyPredicate(GeometryWrapper geometryWrapper) { Boolean isSimple = geometryWrapper.isSimple(); return NodeValue.makeNodeBoolean(isSimple); }    }
@Test public void testApplyPredicate_true() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http: IsSimplePF instance = new IsSimplePF(); NodeValue expResult = NodeValue.makeNodeBoolean(true); NodeValue result = instance.applyPredicate(geometryWrapper); assertEquals(expResult, result); }
@Test public void testApplyPredicate_false() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http: IsSimplePF instance = new IsSimplePF(); NodeValue expResult = NodeValue.makeNodeBoolean(false); NodeValue result = instance.applyPredicate(geometryWrapper); assertEquals(expResult, result); }