ServiceIdActivation serviceIds = index.getServiceIds();
assertEquals(1, serviceIds.getActiveServiceIds().size());
assertTrue(serviceIds.getActiveServiceIds().contains(lsid("s1")));
FrequencyServiceIntervalBlock intervalBlock = index.getServiceIntervalBlock();
assertTrue(Arrays.equals(new int[] {time(6, 0), time(15, 0)},
intervalBlock.getStartTimes()));
assertTrue(Arrays.equals(new int[] {time(9, 0), time(18, 0)},
intervalBlock.getEndTimes()));
/****
*
****/
indices = grep(allIndices, aid("b"));
assertEquals(1, indices.size());
index = indices.get(0);
trips = trips(index.getTrips());
assertEquals(2, trips.size());
assertEquals(tripB, trips.get(0));
assertEquals(tripB, trips.get(1));
freqs = index.getFrequencies();
assertEquals(Arrays.asList(freqB1, freqB2), freqs);
serviceIds = index.getServiceIds();
assertEquals(1, serviceIds.getActiveServiceIds().size());
assertTrue(serviceIds.getActiveServiceIds().contains(lsid("s1")));
intervalBlock = index.getServiceIntervalBlock();
assertTrue(Arrays.equals(new int[] {time(8, 0), time(17, 0)},
intervalBlock.getStartTimes()));
assertTrue(Arrays.equals(new int[] {time(14, 0), time(20, 0)},
intervalBlock.getEndTimes()));
}