def METHOD_NAME(self, method):
    self.log = logging.getLogger("TestProcess")
    self.ctx = omero.util.ServerContext(
        server_id='mock', communicator=None,
        stop_event=omero.util.concurrency.get_event())