In this case, we call check twice (once on `buildStarted` and once on `buildFinished`) so it should only expect two calls. There may be a more elegant way to get this done, but I didn't think of one at the time.