@Override
  public Collection<PluginInfo> getPluginInfos() {
    checkState(started.get(), NOT_STARTED_YET);
    return Set.copyOf(pluginInfosByKeys.values());
  }
@Test
  public void getPluginInfos_throws_ISE_if_repo_is_not_started() {
    assertThatThrownBy(() -> underTest.getPluginInfos())
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("not started yet");
  }