@Test
public void nextPossibleStatus() {

    SurveyInstanceStateMachine completed = SurveyInstanceStateMachineFactory.simple("COMPLETED");
    assertEquals(2, completed.nextPossibleStatus(admin, survey).size());
    assertTrue(completed.nextPossibleStatus(admin, survey).contains(APPROVED));
    assertTrue(completed.nextPossibleStatus(admin, survey).contains(REJECTED));
    assertEquals(0, completed.nextPossibleStatus(participant, survey).size());
}