@Override
  public void beforeComponent(Component component) {
    if (FILE.equals(component.getType())) {
      anticipatedTransitions = anticipatedTransitionRepository.getAnticipatedTransitionByComponent(component);
    } else {
      anticipatedTransitions = Collections.emptyList();
    }
  }
@Test
  public void givenAProjecComponent_theRepositoryIsNotQueriedForAnticipatedTransitions() {
    Component component = getComponent(PROJECT);
    when(anticipatedTransitionRepository.getAnticipatedTransitionByComponent(component)).thenReturn(Collections.emptyList());

    underTest.beforeComponent(component);

    verifyNoInteractions(anticipatedTransitionRepository);
  }