Use assertEqual instead of assertTrue where possible, making it
easier to debug any failing tests.
Allow different broker implementations to re-use the same test cases by abstracting broker specific functions.