Hmm, I'm actually on PostgreSQL right now using H2, this might come useful. Thanks.
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.