@Test
public void testCopyWithNullModuleName() {

  expect(myIdeaProject.getModules()).andReturn(ImmutableDomainObjectSet.of(ImmutableList.of()));
  expect(myIdeaModule.getName()).andStubReturn(null);
  replay(myOriginalDependency, myIdeaModule, myIdeaProject);
  assertNull(JavaModuleDependency.copy(myIdeaProject, myOriginalDependency));
  verify(myOriginalDependency, myIdeaModule);
}