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