@Test
public void testFindMaxDepthIndex() {

    double[] depths = { 0.18234, 0.235, 0.24, 0.245, 1.1 };
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.16) == -1);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.17) == 0);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.19) == 0);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.191) == 0);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.219) == 0);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.22) == 1);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 0.24275) == 3);
    assertTrue(CoordinateUtils.findMaxDepthIndex(depths, 1.1) == 4);
}