@Override
  public PluginInfo getPluginInfo(String key) {
    checkState(started.get(), NOT_STARTED_YET);
    PluginInfo info = pluginInfosByKeys.get(key);
    if (info == null) {
      throw new IllegalArgumentException(format("Plugin [%s] does not exist", key));
    }
    return info;
  }
@Test
  public void getPluginInfo_throws_ISE_if_repo_is_not_started() {
    assertThatThrownBy(() -> underTest.getPluginInfo("foo"))
      .isInstanceOf(IllegalStateException.class)
      .hasMessage("not started yet");
  }