// we have arrived, but no time left to start pickup
assertEquals(new Point(1, 2.0), rm.getPosition(d));
assertEquals(d.gotoState, d.stateMachine.getCurrentState());
// check that pickup occurs exactly at opening of time window
pm.getEventAPI().addListener(new Listener() {
@Override
public void handleEvent(Event e) {
assertEquals(minute(5) + second(30), ((PDPModelEvent) e).time);
}
}, PDPModelEventType.START_PICKUP);