e-Spirit’s product management module development team publishes their internal test utilities on GitHub for everybody. There is a comprehensive README which explains how to use these test tools inside a Java project together with JUnit, Hamcrest and Mockito.
Feel free to contribute to this project in form of issues like bug reports or feature requests as as well as pull requests:
GitHub - e-Spirit/FSTestTools: Project to support developer experience (DX) with FirstSpirit module ...