H2ScoreDistributionWriter implements ScoreDistributionWriter { @Override public void close() throws IOException { try { conn.close(); } catch (SQLException e) { throw new IOException("Problem closing connection to database", e); } } H2ScoreDistributionWriter(String pathDb, String dataTableName, boolean resetTableIfExists); @Override void close(); @Override void write(int numTerms, ScoreDistribution scoreDistribution, int resolution);  }
@Test void close() { assertDoesNotThrow(() -> dbWriter.close()); }