`api.MockJob` is a test utility, that's only used by `command/agent` package. This moves it to the package and removes it from the public API.