question: @ Theory public void logEntriesHaveSameOrderAsIndexes ( Object [ ] dataPoint ) { int index1 = ( int ) dataPoint [ 0 ] ; int index2 = ( int ) dataPoint [ 1 ] ; LogEntry first = logEntries [ index1 ] ; LogEntry second = logEntries [ index2 ] ; LOG . debug ( "testing comparator for log entries: {} and {}" , index1 , index2 ) ; int result = tested . compare ( first , second ) ; int expected = Integer . compare ( index1 , index2 ) ; assertThatHaveSameSignum ( expected , result ) ; }
target:  The assumption here is that log entries in array were created in ascending order.