AirDistanceRouter implements Router, DistanceCalculator, Region { @Override public List<Coordinates> getPath(Coordinates from, Coordinates to) { return Arrays.asList(from, to); }  @Override long travelTimeMillis(Coordinates from, Coordinates to); @Override List<Coordinates> getPath(Coordinates from, Coordinates to); @Override BoundingBox getBounds();  }
@Test void path_from_a_to_b_should_be_the_line_ab() { AirDistanceRouter router = new AirDistanceRouter(); Coordinates from = Coordinates.valueOf(0, 0); Coordinates to = Coordinates.valueOf(3, 4); assertThat(router.getPath(from, to)).containsExactly(from, to); }