@Test
public void shouldThrowIllegalArgumentExceptionIfCallerSpecifiesIndexLessThanZero() {

    // standard log is fine
    // when you make the call with a -'ve number it should fail immediately
    expectedException.expect(IllegalArgumentException.class);
    algorithm.getNextCommitted(-1);
}