The question is how do you match database infrastructure of your test environment with the production one? Most commonly developers use in-memory databases like H2 or HSQLDB. But what if you want to test your code against SAME/REAL DATABASE INFRASTRUCTURE IN PRODUCTION? Amigoscode stop using H2 in memory-database RIGHT NOW Provides a better explanation in code but let's see how we can do it ..