Development of EasyMock and PowerMock has stagnated while Mockito continues to be actively developed. With the new Java cadence, it's a problem to depend on libraries that do bytecode manipulation and are not actively maintained. In addition, Mockito is also easier to use.
While updating the tests, I attempted to go from failing test to passing test. In cases where the updated test passed on the first attempt, I artificially broke it to ensure the test was still doing its job. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) [ Full content available at: https://github.com/apache/kafka/pull/5691 ] This message was relayed via gitbox.apache.org for [email protected]
