def METHOD_NAME(self):
    target = ClassFactory.create()
    data = {"sub1": 1, "sub2": "value"}
    DictMapper.build_class_attribute(target, "a", data)
    expected = AttrFactory.create(
        name="a",
        tag=Tag.ELEMENT,
        types=[AttrTypeFactory.create(qname="a", forward=True)],
    )
    expected_inner = ClassFactory.create(
        qname="a",
        tag=Tag.ELEMENT,
        location="",
        module=None,
        ns_map={},
        attrs=[
            AttrFactory.native(DataType.SHORT, name="sub1"),
            AttrFactory.native(DataType.STRING, name="sub2"),
        ],
    )
    self.assertEqual(expected, target.attrs[0])
    self.assertEqual(expected_inner, target.inner[0])
    self.assertEqual(1, len(target.inner))