@Override
  public void add(Component file, Duplication duplication) {
    checkFileComponentArgument(file);
    checkNotNull(duplication, "duplication can not be null");

    duplications.put(file.getKey(), duplication);
  }
@Test
  @UseDataProvider("allComponentTypesButFile")
  public void addDuplication_inner_throws_IAE_if_file_type_is_not_FILE(Component.Type type) {
    assertThatThrownBy(() -> {
      Component component = mockComponentGetType(type);
      underTest.add(component, SOME_DUPLICATION);
    })
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("type of file must be FILE");
  }