OpenLSClient { public static DetermineRouteResponseType determineRoute( DetermineRouteRequestType parameter, String url) { return determineRoute(parameter, url, new BigInteger("1")); }  @SuppressWarnings({ "restriction", "unchecked" }) static XLSType post(XLSType parameter, String url); static DetermineRouteResponseType determineRoute(
			DetermineRouteRequestType parameter, String url); @SuppressWarnings("restriction") static DetermineRouteResponseType determineRoute(
			DetermineRouteRequestType parameter, String url,
			BigInteger maximumResponses); static DetermineRouteResponseType determineRoute(String url,
			BigInteger maximumResponses, DistanceUnitType distanceUnit,
			RouteGeometryRequestType routeGeometryRequest,
			RouteInstructionsRequestType routeInstructionsRequest,
			RouteHandleType routeHandle, RoutePlanType routePlan,
			RouteMapRequestType routeMapRequest); static DetermineRouteResponseType determineRoute(String url,
			Point origin, List<Point> stops);  }
@Test public void testSimplestRouting() { Point origin = new Point(new CoordinateArraySequence( new Coordinate[] { new Coordinate(x, y) }), gf); List<Point> stops = new LinkedList<Point>(); for (int i = 0; i < 5; i++) { double d = r.nextDouble() / 8; if (r.nextBoolean()) d = -d; double d2 = r.nextDouble() / 8; if (r.nextBoolean()) d2 = -d2; Point p = new Point(new CoordinateArraySequence( new Coordinate[] { new Coordinate(x + d, y + d2) }), gf); stops.add(p); } DetermineRouteResponseType determineRoute = OpenLSClient .determineRoute(url, origin, stops); assertNotNull(determineRoute); assertNotNull(determineRoute.getRouteGeometry().getLineString()); assertTrue(determineRoute.getRouteGeometry().getLineString() .getPosList().getValue().size() > 0); }