def METHOD_NAME(self):
    callback = Callback()
    self.process.activate()
    self.process.registerCallback(callback)
    self.process.allcallbacks("processCancelled", True)
    assert callback._cancelled