### Question:
Vector2D { public double getDistanceToVector(Vector2D vector2D) { double squaredDistance = getSquaredDistanceToVector(vector2D); return MathUtil.round(java.lang.Math.sqrt(squaredDistance), 4); } Vector2D(Vector2D vector2D);  Vector2D(double x, double y); @Override boolean equals(Object o); @Override int hashCode(); double getYCoordinate(); double getXCoordinate(); @Override String toString(); Vector2D getVectorInDirection(double distance, double angle); double getAngleToVector(Vector2D vector2D); double getDistanceToVector(Vector2D vector2D); double getSquaredDistanceToVector(Vector2D vector2D); static final Vector2D ORIGIN; }### Answer:
@Test public void testGetDistanceToVector() { Vector2D vector1 = new Vector2D(0, 0); Vector2D vector2 = new Vector2D(0, 5); double distance = vector1.getDistanceToVector(vector2); double expectedDistance = 5; Assert.assertEquals(distance, expectedDistance); }