@Override
  public Collection<String> resolve(Class<? extends AnalysisIndexer> clazz) {
    if (clazz.isAssignableFrom(IssueIndexer.class)) {
      return changedIssuesRepository.getChangedIssuesKeys();
    }
    throw new UnsupportedOperationException("Unsupported indexer: " + clazz);
  }
@Test
  public void resolve_whenUnsupportedIndexer_shouldThrowUPE() {
    when(changedIssuesRepository.getChangedIssuesKeys()).thenReturn(Set.of("key1", "key2","key3"));
    assertThatThrownBy(() ->underTest.resolve(ProjectMeasuresIndexer.class))
      .isInstanceOf(UnsupportedOperationException.class)
      .hasMessage("Unsupported indexer: class org.sonar.server.measure.index.ProjectMeasuresIndexer");
  }