@Test
public void updateHeuristicHelp() throws SQLException {

    String help = "<p>\nTest\n</p>";
    HeuristicsResultDB db = new HeuristicsResultDB(dbConfiguration);
    List<Heuristic> heuristics = new ArrayList<>();
    Heuristic heuristic = mock(Heuristic.class);
    doReturn(help).when(heuristic).getHelp();
    heuristics.add(heuristic);
    db.updateHeuristicHelp(heuristics);
    ResultSet rset = db.connection.createStatement().executeQuery("SELECT  * FROM garmadon_heuristic_help");
    HashMap<String, String> result = new HashMap<>();
    while (rset.next()) {
        result.put(rset.getString(1), rset.getString(2));
    }
    assertEquals(help, result.get(heuristic.getClass().getSimpleName()));
}