def METHOD_NAME(self):
    barrier_msg = Mock()
    barrier_msg.xid = self._mock_datapath.prev_barrier_xid
    barrier_msg.datapath = self._mock_datapath
    ev = Mock()
    ev.msg = barrier_msg
    return ev