def METHOD_NAME(self):
    export_name = 'archive_json'
    data = {'meta':'test'}
    archive = FileArchive(export_name=export_name, pack=False)
    archive.add(filename='metadata.json', data=json.dumps(data),
                info={'mime_type':'text/json'})
    self.assertEqual(len(archive), 1)
    self.assertEqual(archive.listing(), ['metadata.json'])
    archive.export()
    fname = f"{export_name}_metadata.json"
    if not os.path.isfile(fname):
        raise AssertionError(f"No file {fname!r} created on export.")
    self.assertEqual(json.load(open(fname)), data)
    self.assertEqual(archive.listing(), [])