public void testCreateFromModuleDependency() {
DefaultExternalModuleDependency moduleDependency = new DefaultExternalModuleDependency("org.gradle",
"gradle-core", "1.0", TEST_DEP_CONF);
setUpDependency(moduleDependency);
DslOriginDependencyMetaData dependencyMetaData = externalModuleDependencyDescriptorFactory.createDependencyDescriptor(TEST_CONF, moduleDependency, moduleDescriptor);
DependencyDescriptor dependencyDescriptor = dependencyMetaData.getDescriptor();
assertEquals(moduleDependency.isChanging(), dependencyDescriptor.isChanging());
assertEquals(dependencyDescriptor.isForce(), moduleDependency.isForce());
assertEquals(IvyUtil.createModuleRevisionId(moduleDependency), dependencyDescriptor.getDependencyRevisionId());
assertDependencyDescriptorHasCommonFixtureValues(dependencyDescriptor);
}