ConvertLatLonBox { public static final Literal toLiteral(double latMin, double lonMin, double latMax, double lonMax) { ConvertLatLon.checkBounds(latMin, lonMin); ConvertLatLon.checkBounds(latMax, lonMax); return WKTLiteralFactory.createBox(latMin, lonMin, latMax, lonMax, SRS_URI.WGS84_CRS); }  static final String toWKT(double latMin, double lonMin, double latMax, double lonMax); static final Literal toLiteral(double latMin, double lonMin, double latMax, double lonMax); static final NodeValue toNodeValue(NodeValue v1, NodeValue v2, NodeValue v3, NodeValue v4); static final Node toNode(Node n1, Node n2, Node n3, Node n4);  }
@Test public void testToLiteral() { float latMin = 0.0F; float lonMin = 1.0F; float latMax = 10.0F; float lonMax = 11.0F; Literal expResult = ResourceFactory.createTypedLiteral("<http: Literal result = ConvertLatLonBox.toLiteral(latMin, lonMin, latMax, lonMax); assertEquals(expResult, result); }