private void assertArtifactIsAdded(
     Configuration configuration,
     DefaultModuleDescriptor moduleDescriptor,
     Map<String, String> extraAttributes) {
   assertThat(
       moduleDescriptor.getArtifacts(configuration.getName()),
       equalTo(
           WrapUtil.toArray(
               expectedIvyArtifact(configuration, moduleDescriptor, extraAttributes))));
 }
 private ResolveOptions createResolveOptions(Configuration configuration) {
   ResolveOptions resolveOptions = new ResolveOptions();
   resolveOptions.setDownload(false);
   resolveOptions.setConfs(WrapUtil.toArray(configuration.getName()));
   return resolveOptions;
 }