@Test
public void testExtractObjectArguments_4args() {

    Node predicate = NodeFactory.createURI(SpatialExtension.NEARBY_GEOM_PROP);
    float lat = 0;
    float lon = 1;
    float radius = 5000;
    String unitsURI = Unit_URI.METRE_URL;
    int limit = 10;
    Literal geometry = ConvertLatLon.toLiteral(lat, lon);
    List<Node> objectNodes = Arrays.asList(geometry.asNode(), NodeValue.makeFloat(radius).asNode(), NodeFactory.createURI(unitsURI), NodeValue.makeInteger(limit).asNode());
    PropFuncArg object = new PropFuncArg(objectNodes);
    GeometryWrapper geometryWrapper = GeometryWrapper.extract(geometry);
    SearchEnvelope searchEnvelope = SearchEnvelope.build(geometryWrapper, SpatialIndexTestData.WGS_84_SRS_INFO, radius, unitsURI);
    NearbyGeomPF instance = new NearbyGeomPF();
    SpatialArguments expResult = new SpatialArguments(limit, geometryWrapper, searchEnvelope);
    SpatialArguments result = instance.extractObjectArguments(predicate, object, SpatialIndexTestData.WGS_84_SRS_INFO);
    assertEquals(expResult, result);
}