intToString.put(0, "W.py");
ModulesManager.handleFileContents(manager, contents, intToString);
assertEquals(3, manager.modulesKeys.size());
ModulesKey key = manager.modulesKeys.get(new ModulesKey("A", null));
assertEquals(key, new ModulesKey("A", null));
assertEquals(key.file, new File("A.py"));
assertTrue(!(key instanceof ModulesKeyForZip));
key = manager.modulesKeys.get(new ModulesKey("B", null));
assertEquals(key, new ModulesKey("B", null));
assertNull(key.file);
assertTrue(!(key instanceof ModulesKeyForZip));
key = manager.modulesKeys.get(new ModulesKey("D", null));
assertEquals(key, new ModulesKey("D", null));
assertEquals(key.file, new File("W.py"));
assertTrue(key instanceof ModulesKeyForZip);
ModulesKeyForZip kz = (ModulesKeyForZip) key;
assertTrue(kz.isFile);
assertEquals(kz.zipModulePath, "E");