You should be able to use ```MetadataMap.__eq__``` to make the comparisons (i.e., ```self.assertEqual(obs, exp)```, where ```obs``` and ```exp```are both ```MetadataMap``` instances).