/** Test the method of {@link TimeAxisImpl#findIndexOf}. */ @Test public void testFindIndexOf() { // the first date is index 0 int expectedIndex = 4; DateTime fifthDate = tAxis.getCoordinateValue(expectedIndex); assertEquals(expectedIndex, tAxis.findIndexOf(fifthDate)); int notFoundIndex = -1; // a date is outside t axis. assertEquals(notFoundIndex, tAxis.findIndexOf(start.plusDays(25))); }