assertThat(configurationContainer.getAll(), equalTo(WrapUtil.toSet(configuration1, configuration2)));
}
@Test
public void testCreateDetached() {
Dependency dependency1 = HelperUtil.createDependency("group1", "name1", "version1");
Dependency dependency2 = HelperUtil.createDependency("group2", "name2", "version2");
Configuration detachedConf = configurationContainer.detachedConfiguration(dependency1, dependency2);
assertThat(detachedConf.getAll(), equalTo(WrapUtil.toSet(detachedConf)));
assertThat(detachedConf.getHierarchy(), equalTo(WrapUtil.<Configuration>toSet(detachedConf)));