@Test
public void testReader() {

    CycleLogInput cycleLogInput = new CycleLogInput(cyclefile.getPath());
    CycleSegment i1;
    long c;
    i1 = cycleLogInput.getInputSegment(1);
    c = i1.nextCycle();
    assertThat(c).isEqualTo(1L);
    i1 = cycleLogInput.getInputSegment(1);
    c = i1.nextCycle();
    assertThat(c).isEqualTo(2L);
    i1 = cycleLogInput.getInputSegment(1);
    c = i1.nextCycle();
    assertThat(c).isEqualTo(3L);
    i1 = cycleLogInput.getInputSegment(1);
    c = i1.nextCycle();
    assertThat(c).isEqualTo(4L);
    i1 = cycleLogInput.getInputSegment(1);
    c = i1.nextCycle();
    assertThat(c).isEqualTo(5L);
    assertThat(i1.isExhausted()).isTrue();
}