### Question:
TurtleSoup { public static List<Double> calculateBearings(List<Integer> xCoords, List<Integer> yCoords) { throw new RuntimeException("implement me!"); }  static void drawSquare(Turtle turtle, int sideLength); static double calculateRegularPolygonAngle(int sides); static int calculatePolygonSidesFromAngle(double angle); static void drawRegularPolygon(Turtle turtle, int sides, int sideLength); static double calculateBearingToPoint(double currentBearing, int currentX, int currentY,
                                                 int targetX, int targetY); static List<Double> calculateBearings(List<Integer> xCoords, List<Integer> yCoords); static Set<Point> convexHull(Set<Point> points); static void drawPersonalArt(Turtle turtle); static void main(String args[]);  }### Answer:
@Test public void calculateBearingsTest() { List<Integer> xpoints = new ArrayList<>(); List<Integer> ypoints = new ArrayList<>(); xpoints.add(0); xpoints.add(1); xpoints.add(1); ypoints.add(0); ypoints.add(1); ypoints.add(2); List<Double> result = TurtleSoup.calculateBearings(xpoints, ypoints); assertEquals(2, result.size()); assertEquals(45.0, result.get(0), 0.001); assertEquals(315.0, result.get(1), 0.001); }