@Test
public void testFindLane() {

  String[] testImages = new String[] {
      TEST_IMAGE,
      "/robocar-lanetest-01.jpg",
      "/robocar-lanetest-02.jpg",
      "/robocar-lanetest-03.jpg",
      "/robocar-lanetest-04.jpg",
      "/robocar-lanetest-05.jpg",
      "/robocar-lanetest-06.jpg",
      "/robocar-lanetest-07.jpg",
      "/robocar-lanetest-08.jpg",
      "/robocar-lanetest-09.jpg",
      "/robocar-lanetest-10.jpg",};
  for (String testImage: testImages) {
    opencv_core.Mat src = LaneManager.readImage(getResourcePath(testImage));
    HistogramPosition position = LaneManager.findLane(src);
    // Print line
    int xPos = (int) Math.floor(TEST_IMAGE_WIDTH * position.getBinIndex() / LaneManager.HISTOGRAM_BINS);
    opencv_core.Scalar color = new opencv_core.Scalar(255, 0, 0, 0); // Blue (BGR)
    LaneManager.drawLine(src,
        new opencv_core.Point(xPos, 0), // top left
        new opencv_core.Point(xPos, src.size().height()), // bottom right
        color, 5);
    assertTrue(LaneManager.writeImage("/tmp" + testImage, src));
  }
}