ConvertLatLon { public static final NodeValue toNodeValue(NodeValue latNodeValue, NodeValue lonNodeValue) { double lat = extractDouble(latNodeValue); double lon = extractDouble(lonNodeValue); Literal wktPoint = toLiteral(lat, lon); return NodeValue.makeNode(wktPoint.asNode()); }  static final Literal toLiteral(double lat, double lon); static final String toWKT(double lat, double lon); static final NodeValue toNodeValue(NodeValue latNodeValue, NodeValue lonNodeValue); static double extractDouble(NodeValue nodeValue); static final Node toNode(Node latNode, Node lonNode); static final GeometryWrapper toGeometryWrapper(Node latNode, Node lonNode); static final void checkBounds(double latitude, double longitude);  }
@Test public void testConvert_NodeValue_NodeValue() { NodeValue v1 = NodeValue.makeFloat(10.0f); NodeValue v2 = NodeValue.makeFloat(20.0f); NodeValue expResult = NodeValue.makeNode("<http: NodeValue result = ConvertLatLon.toNodeValue(v1, v2); assertEquals(expResult, result); }