def METHOD_NAME(self):
    test_data = {
        "metadata": {"foo": "bar"},
        "name": ["Johnny", "B", "Good"],
        "class": {"module": "fractions", "name": "Fraction"},
        "data": {},
    }
    after = BW2Package._load_obj(copy.deepcopy(test_data), False)
    for key in test_data:
        self.assertTrue(key in after)
    with self.assertRaises(InvalidPackage):
        BW2Package._load_obj({})
    self.assertEqual(after["class"], fractions.Fraction)