@Test
public void testFindMinDepthIndex() {

    double[] depths = { 0.18234, 0.235, 0.24, 0.245, 1.1 };
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.15) == 0);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.18234) == 0);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.24) == 2);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.2401) == 2);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.239) == 1);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 2) == -1);
    assertTrue(CoordinateUtils.findMinDepthIndex(depths, 0.24275) == 2);
}