Matchers.sameInstance(selectedTransUnit.getId()));
}
@Test
public void onPersonExit() {
TransUnit selectedTransUnit = TestFixture.makeTransUnit(1);
Person person = TestFixture.person();
service.personExit(person, selectedTransUnit.getId());
verify(dispatcher).execute(actionCaptor.capture(),
Mockito.isA(NoOpAsyncCallback.class));
TransUnitEditAction action = actionCaptor.getValue();
assertThat(action.getPerson(), Matchers.sameInstance(person));
assertThat(action.getSelectedTransUnitId(),
Matchers.sameInstance(selectedTransUnit.getId()));
}