def METHOD_NAME(self):
    xml = """
    <container>
        <elements type="array">
            <elem><val>val1</val></elem>
            <elem><val>val2</val></elem>
            <elem><val>val3</val></elem>
        </elements>
    </container>
    """
    expected = {"container": {"elements": [{"val": "val1"}, {"val": "val2"}, {"val": "val3"}]}}
    self.assertEqual(expected, XmlUtil.dict_from_xml(xml))