assertThat(moduleRevisionId.getExtraAttributes(), equalTo((Map) new HashMap()));
}
@Test
public void resolveModuleRevisionIdShouldBeDeterminedByModuleForResolvePlusExtraAttributes() {
ProjectDependency projectDependency = createProjectDependency(TEST_CONF);
Module module = ((ProjectInternal) projectDependency.getDependencyProject()).getModule();
ModuleRevisionId moduleRevisionId =
ProjectDependencyDescriptorFactory.RESOLVE_DESCRIPTOR_STRATEGY.createModuleRevisionId(projectDependency);
assertThat(moduleRevisionId.getOrganisation(), equalTo(module.getGroup()));
assertThat(moduleRevisionId.getName(), equalTo(module.getName()));
assertThat(moduleRevisionId.getRevision(), equalTo(module.getVersion()));
assertThat(moduleRevisionId.getExtraAttributes(),
equalTo((Map) WrapUtil.toMap(DependencyDescriptorFactory.PROJECT_PATH_KEY, projectDependency.getDependencyProject().getPath())));
}