@Override
  public boolean hasPlugin(String key) {
    checkState(started.get(), NOT_STARTED_YET);
    return pluginInfosByKeys.containsKey(key);
  }
@Test
  public void hasPlugin_throws_ISE_if_repo_is_not_started() {
    assertThatThrownBy(() -> underTest.hasPlugin("foo"))
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("not started yet");
  }