  @Test
  public void testGetStageTransitionsWhenNoneExists() {

    DefaultInterviewServiceImpl service = new DefaultInterviewServiceImpl();
    service.setPersistenceManager(persistenceManagerMock);

    // Create an empty list of stage transitions for the test.
    List<StageTransition> expectedStageTransitions = new ArrayList<StageTransition>();

    StageTransition stageTransition = createStageTransition(interview, stage);
    SortingClause sortingClause = new SortingClause(STAGE_TRANSITION_SORTING_CLAUSE);

    // Record expected behaviour.
    expect(persistenceManagerMock.match(stageTransition, sortingClause)).andReturn(expectedStageTransitions);
    replay(persistenceManagerMock);

    // Execute test.
    List<StageTransition> stageTransitions = service.getStageTransitions(interview, stage);

    // Verify expected behaviour.
    verify(persistenceManagerMock);

    // Verify expected state.
    assertNotNull(stageTransitions);
    Assert.assertTrue(stageTransitions.isEmpty());
  }