ModuleInputFileCache moduleInputFileCache = mock(ModuleInputFileCache.class);
@Test
public void test_equals_and_hashCode() throws Exception {
DefaultModuleFileSystem foo1 = new DefaultModuleFileSystem(moduleInputFileCache,
new Project("foo"), settings, fileIndexer, initializer, componentIndexer);
DefaultModuleFileSystem foo2 = new DefaultModuleFileSystem(moduleInputFileCache,
new Project("foo"), settings, fileIndexer, initializer, componentIndexer);
DefaultModuleFileSystem bar = new DefaultModuleFileSystem(moduleInputFileCache,
new Project("bar"), settings, fileIndexer, initializer, componentIndexer);
DefaultModuleFileSystem branch = new DefaultModuleFileSystem(moduleInputFileCache,
new Project("bar", "branch", "My project"), settings, fileIndexer, initializer, componentIndexer);
assertThat(foo1.moduleKey()).isEqualTo("foo");
assertThat(branch.moduleKey()).isEqualTo("bar:branch");
assertThat(foo1.equals(foo1)).isTrue();
assertThat(foo1.equals(foo2)).isTrue();