@Test
public void testRepositoryTable() {

  final RepositoryInfo repositoryInfo1 = new RepositoryInfo();
  repositoryInfo1.setOsType("redhat6");
  repositoryInfo1.setRepoId("HDP-2.2");
  repositoryInfo1.setBaseUrl("http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0");
  final RepositoryInfo repositoryInfo2 = new RepositoryInfo();
  repositoryInfo2.setOsType("suse11");
  repositoryInfo2.setRepoId("HDP-UTILS-1.1.0.20");
  repositoryInfo2.setBaseUrl("http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/suse11sp3");
  List<RepositoryInfo> repos = new ArrayList<RepositoryInfo>() {{
    add(repositoryInfo1);
    add(repositoryInfo2);
  }};
  String output = UpgradeCatalog200.repositoryTable(repos);
  assertEquals("  redhat6 |            HDP-2.2 | http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0 \n" +
               "   suse11 | HDP-UTILS-1.1.0.20 | http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/suse11sp3 \n",
    output);
}