def _CreateTestKeyWithMappedRegistry(self):
registry_key = virtual.VirtualWinRegistryKey(<EOL>'<STR_LIT>', key_path='<STR_LIT>')<EOL>win_registry = registry.WinRegistry(<EOL>registry_file_reader=test_registry.TestWinRegistryFileReader())<EOL>test_path = self._GetTestFilePath(['<STR_LIT>'])<EOL>registry_file = win_registry._OpenFile(test_path)<EOL>key_path_prefix = win_registry.GetRegistryFileMapping(registry_file)<EOL>win_registry.MapFile(key_path_prefix, registry_file)<EOL>sub_registry_key = virtual.VirtualWinRegistryKey(<EOL>'<STR_LIT>', registry=win_registry)<EOL>registry_key.AddSubkey(sub_registry_key)<EOL>return registry_key<EOL>
Creates a virtual Windows Registry key with a mapped registry.

        Returns:
          VirtualWinRegistryKey: virtual Windows Registry key.