'Tests that a file can be written by a plugin and retrieved.'

@RequireTestImage
def testFileOutput(self):

    request = rdf_rekall_types.RekallRequest()
    request.plugins = [rdf_rekall_types.PluginRequest(plugin='procdump', args=dict(pids=[2860]))]
    with test_lib.Instrument(transfer.MultiGetFile, 'StoreStat') as storestat_instrument:
        self.LaunchRekallPlugin(request)
        self.assertEqual(storestat_instrument.call_count, 1)
