@Test
  public void canGetSingleRemoteConfig()
      throws CoreException, MalformedURLException, URISyntaxException, IOException {
    String remoteName = "repo2";

    testRepository.addRemoteTo(remoteName, testRepository2.getRepository());
    List<RemoteConfig> allRemoteConfigs =
        EGitUtils.getAllRemoteConfigs(testRepository.getRepository());
    assertNotNull(allRemoteConfigs);
    assertEquals(1, allRemoteConfigs.size());
    RemoteConfig repo2Config = EGitUtils.getRemoteConfig(remoteName, allRemoteConfigs);
    assertNotNull(repo2Config);
  }
  @Test
  public void canGetFromSeveralRemoteConfig()
      throws CoreException, MalformedURLException, URISyntaxException, IOException {
    String repo2RemoteName = "repo2";

    testRepositoryClone.addRemoteTo(repo2RemoteName, testRepository2.getRepository());
    List<RemoteConfig> allRemoteConfigs =
        EGitUtils.getAllRemoteConfigs(testRepositoryClone.getRepository());
    assertNotNull(allRemoteConfigs);
    // clone already has repo1 as origin
    assertEquals(2, allRemoteConfigs.size());
    RemoteConfig repo2Config = EGitUtils.getRemoteConfig(repo2RemoteName, allRemoteConfigs);
    assertNotNull(repo2Config);
  }