private static void runTest(
long timeOffset, long startTimeUsec, long endTimeUsec, int numShards, long[] startTimes) {
LogQuery logQuery = LogQuery.Builder.withDefaults();
logQuery.startTimeUsec(timeOffset + startTimeUsec);
logQuery.endTimeUsec(timeOffset + endTimeUsec);
LogInput input = new LogInput(logQuery, numShards);
List<? extends InputReader<RequestLogs>> readers = input.createReaders();
assertEquals("Incorrect number of readers", startTimes.length, readers.size());
for (int i = 0; i < startTimes.length; i++) {
LogInputReader reader = (LogInputReader) readers.get(i);