In my project, for unit testing, I asked Spring to handle this database creation and initialization. As stated in the H2 documentation, you can create a bean for that:
You simply need to start the Spring context with this configuration when you start your unit tests.