* Some tests for the getMaxMiddleIndex() method.
*/
public void testGetMaxMiddleIndex() {
TimePeriodValues s = new TimePeriodValues("Test");
assertEquals(-1, s.getMaxMiddleIndex());
s.add(new SimpleTimePeriod(100L, 200L), 1.0);
assertEquals(0, s.getMaxMiddleIndex());
s.add(new SimpleTimePeriod(300L, 400L), 2.0);
assertEquals(1, s.getMaxMiddleIndex());
s.add(new SimpleTimePeriod(0L, 50L), 3.0);
assertEquals(1, s.getMaxMiddleIndex());
s.add(new SimpleTimePeriod(150L, 200L), 4.0);
assertEquals(1, s.getMaxMiddleIndex());
}