@Override
  public boolean isAdded(Component component) {
    checkComponent(component);
    if (analysisMetadataHolder.isFirstAnalysis()) {
      return true;
    }
    return addedComponents.contains(component);
  }
@Test
  public void isAdded_returns_true_for_any_component_type_on_first_analysis() {
    when(analysisMetadataHolder.isFirstAnalysis()).thenReturn(true);

    Arrays.stream(Component.Type.values()).forEach(type -> {
      Component component = newComponent(type);

      assertThat(underTest.isAdded(component)).isTrue();
    });
  }