### Question:
AnchoredPredictor { public Status predict(double lat, double lon, double speedKnots, double courseMinusHeading, double preEffectiveSpeedKnots, double preError, double postEffectiveSpeedKnots, double postError) { Vector features = new DenseVector(new double[] { lat, lon, speedKnots, courseMinusHeading, preEffectiveSpeedKnots, preError, postEffectiveSpeedKnots, postError }); double prediction = model.predict(features); if (is(prediction, 1)) return Status.MOORED; else if (is(prediction, 2)) return Status.ANCHORED; else return Status.OTHER; } AnchoredPredictor(JavaSparkContext sc); Status predict(double lat, double lon, double speedKnots, double courseMinusHeading,
            double preEffectiveSpeedKnots, double preError, double postEffectiveSpeedKnots,
            double postError);  }### Answer:
@Test public void testLoad() { SparkConf sparkConf = new SparkConf().setAppName("AnchoragePredictor"); sparkConf.set("spark.ui.enabled", "false"); sparkConf.setMaster("local"); JavaSparkContext sc = new JavaSparkContext(sparkConf); AnchoredPredictor predictor = new AnchoredPredictor(sc); Status status = predictor.predict(-10, 145, 10, 0, 8.0, 10, 8.0, 7); assertEquals(Status.OTHER, status); }