They should share a common base class, e.g., `CliTestBase`. It should handle as much of classpath setup, annotation processor setup, etc. as possible.