'Read Run key from the client_fixtures to test parsing and storage.'

def testCollectRunKeyBinaries(self):

    fixture_test_lib.ClientFixture(self.client_id, token=self.token)
    client = aff4.FACTORY.Open(self.client_id, token=self.token, mode='rw')
    client.Set(client.Schema.SYSTEM('Windows'))
    client.Set(client.Schema.OS_VERSION('6.2'))
    client.Flush()
    with vfs_test_lib.VFSOverrider(rdf_paths.PathSpec.PathType.OS, vfs_test_lib.FakeFullVFSHandler):
        client_mock = action_mocks.ActionMock(file_fingerprint.FingerprintFile, searching.Find, standard.StatFile)
        for _ in flow_test_lib.TestFlowHelper(artifact.KnowledgeBaseInitializationFlow.__name__, client_mock, client_id=self.client_id, token=self.token):
            pass
        with test_lib.Instrument(transfer.MultiGetFile, 'Start') as getfile_instrument:
            for _ in flow_test_lib.TestFlowHelper(registry.CollectRunKeyBinaries.__name__, client_mock, client_id=self.client_id, token=self.token):
                pass
            download_requested = False
            for pathspec in getfile_instrument.args[0][0].args.pathspecs:
                if (pathspec.path == u'C:\\Windows\\TEMP\\A.exe'):
                    download_requested = True
            self.assertTrue(download_requested)
