}
@Test
public void test03() {
ScheduledBlockLocation position = _service.getScheduledBlockLocationFromScheduledTime(
_blockConfig, time(10, 8));
assertEquals(_tripA, position.getActiveTrip());
assertEquals(_stopTimeB, position.getClosestStop());
assertEquals(120, position.getClosestStopTimeOffset());
assertEquals(_stopTimeA, position.getPreviousStop());
assertEquals(_stopTimeB, position.getNextStop());
assertEquals(120, position.getNextStopTimeOffset());
assertEquals(680, position.getDistanceAlongBlock(), 0.0);
assertEquals(47.6666929645559, position.getLocation().getLat(), 1e-6);
assertEquals(-122.38214275139767, position.getLocation().getLon(), 1e-6);
assertEquals(318.3, position.getOrientation(), 0.1);
assertEquals(time(10, 8), position.getScheduledTime());
assertTrue(position.isInService());
assertEquals(1, position.getStopTimeIndex());
position = _service.getScheduledBlockLocationFromDistanceAlongBlock(
_blockConfig, 680);
assertEquals(_tripA, position.getActiveTrip());
assertEquals(_stopTimeB, position.getClosestStop());
assertEquals(_stopTimeA, position.getPreviousStop());
assertEquals(_stopTimeB, position.getNextStop());
assertEquals(120, position.getNextStopTimeOffset());
assertEquals(120, position.getClosestStopTimeOffset());
assertEquals(680, position.getDistanceAlongBlock(), 0.0);
assertEquals(47.6666929645559, position.getLocation().getLat(), 1e-6);
assertEquals(-122.38214275139767, position.getLocation().getLon(), 1e-6);
assertEquals(318.3, position.getOrientation(), 0.1);
assertEquals(time(10, 8), position.getScheduledTime());
assertTrue(position.isInService());
assertEquals(1, position.getStopTimeIndex());
}