### Question:
H2DbInfoExtractor implements DbInfoExtractor { @Override public int getHeight(String dbPath) { JdbcConnectionPool dataSource = createDataSource(dbPath); if (dataSource != null) { int height = getHeight(dataSource); shutdownDb(dataSource); return height; } else return 0; } @Inject  H2DbInfoExtractor(@Property("apl.dbUsername") String user,
                             @Property("apl.dbPassword") String password); @Override int getHeight(String dbPath); @Override Path getPath(String dbPath);  }### Answer:
@Test void testGetHeight() { int height = h2DbInfoExtractor.getHeight(path.toString()); Assertions.assertEquals(BlockTestData.BLOCK_13_HEIGHT, height); }