}
@Test
public void test00b() {
ScheduledBlockLocation position = _service.getScheduledBlockLocationFromScheduledTime(
_blockConfig, time(9, 59));
assertEquals(_tripA, position.getActiveTrip());
assertEquals(_stopTimeA, position.getClosestStop());
assertEquals(60, position.getClosestStopTimeOffset());
assertNull(position.getPreviousStop());
assertEquals(_stopTimeA, position.getNextStop());
assertEquals(60, position.getNextStopTimeOffset());
assertEquals(140.0, position.getDistanceAlongBlock(), 0.0);
assertEquals(47.668911387520204, position.getLocation().getLat(), 1e-6);
assertEquals(-122.38756951346872, position.getLocation().getLon(), 1e-6);
assertEquals(270.8, position.getOrientation(), 0.1);
assertEquals(time(9, 59), position.getScheduledTime());
assertTrue(position.isInService());
assertEquals(0, position.getStopTimeIndex());
position = _service.getScheduledBlockLocationFromDistanceAlongBlock(
_blockConfig, 140.0);
assertEquals(_tripA, position.getActiveTrip());
assertEquals(_stopTimeA, position.getClosestStop());
assertEquals(60, position.getClosestStopTimeOffset());
assertNull(position.getPreviousStop());
assertEquals(_stopTimeA, position.getNextStop());
assertEquals(60, position.getNextStopTimeOffset());
assertEquals(140.0, position.getDistanceAlongBlock(), 0.0);
assertEquals(47.668911387520204, position.getLocation().getLat(), 1e-6);
assertEquals(-122.38756951346872, position.getLocation().getLon(), 1e-6);
assertEquals(270.8, position.getOrientation(), 0.1);
assertEquals(time(9, 59), position.getScheduledTime());
assertTrue(position.isInService());
assertEquals(0, position.getStopTimeIndex());
}