Just add the Maven dependency and see their own tests for an example:
https://github.com/airlift/testing-postgresql-server/blob/ma...
https://github.com/airlift/testing-mysql-server/blob/master/...
Though you want to use @BeforeClass / @AfterClass or similar rather than creating one for each test.