JerkKinematics { public static double getDisplacement(double initialVelocity, double initialAcceleration, double jerk, double time) { return initialVelocity * time + 1/2d * initialAcceleration * Math.pow(time, 2) + 1/6d * jerk * Math.pow(time, 3); } private  JerkKinematics(); static double getDisplacement(double initialVelocity, double initialAcceleration, double jerk, double time); static double getTimeToReachDisplacement(double displacement, double initialVelocity, double initialAcceleration, double jerk); static double getFinalVelocity(double initialVelocity, double initialAcceleration, double jerk, double time); static double getTimeToReachVelocity(double initialVelocity, double targetVelocity, double initialAcceleration, double jerk);  }
@Test void getDisplacement_whenSuitableValuesGiven_thenGivesCorrectAnswer() { double displacement = JerkKinematics.getDisplacement(3.0, 2.5, 3, 12.0); Assertions.assertEquals(1080, displacement); }