def test_annual_renew_event(self):
        from wechatpy.events import AnnualRenewEvent

        xml = """
        <xml>
        <ToUserName><![CDATA[toUser]]></ToUserName>
        <FromUserName><![CDATA[FromUser]]></FromUserName>
        <CreateTime>1442401004</CreateTime>
        <MsgType><![CDATA[event]]></MsgType>
        <Event><![CDATA[annual_renew]]></Event>
        <ExpiredTime>1442401004</ExpiredTime>
        </xml>"""
        event = parse_message(xml)
        self.assertTrue(isinstance(event, AnnualRenewEvent))
        self.assertTrue(isinstance(event.expired_time, datetime))