@Test
public void duplicateStackServiceReposAreCheckedPerOs() throws Exception {

  StackModule sm = createStackModule("FooBar",
      "2.4",
      Optional.<List<RepositoryInfo>>absent(),
      Lists.newArrayList(repoInfo("bar", "2.0.1", "http://bar.org", "centos6")),
      Lists.newArrayList(repoInfo("bar", "2.0.1", "http://bar.org", "centos7")));
  Multiset<String> repoIds = getIdsMultiple(sm.getModuleInfo().getRepositories());
  assertEquals("Repo should be occur exactly twice, once for each os type.",
      ImmutableMultiset.of("bar:2.0.1", "bar:2.0.1"), repoIds);
}