@Test
public void stackServiceReposAreRead() throws Exception {

  StackModule sm = createStackModule("FooBar",
      "2.4",
      Optional.of(Lists.newArrayList(repoInfo("foo", "1.0.1", "http://foo.org"))),
      Lists.newArrayList(repoInfo("bar", "2.0.1", "http://bar.org")));
  Set<String> repoIds = getIds(sm.getModuleInfo().getRepositories());
  assertEquals(ImmutableSet.of("foo:1.0.1", "bar:2.0.1"), repoIds);
}