@Override
  public void afterComponent(Component component) {
    componentsWithUnprocessedIssues.remove(component.getUuid());
    Optional<MovedFilesRepository.OriginalFile> originalFile = movedFilesRepository.getOriginalFile(component);
    if (originalFile.isPresent()) {
      componentsWithUnprocessedIssues.remove(originalFile.get().uuid());
    }
  }
@Test
  public void remove_processed_files() {
    when(movedFilesRepository.getOriginalFile(any(Component.class))).thenReturn(Optional.empty());
    underTest.afterComponent(component);

    verify(movedFilesRepository).getOriginalFile(component);
    verify(componentsWithUnprocessedIssues).remove(UUID);
    verifyNoMoreInteractions(componentsWithUnprocessedIssues);
  }