@Test(expected = RuntimeException.class)
public void throwRuntimeExceptionIfInsertFailed() {

    String appId = "appId";
    String detail = "detail";
    HeuristicsResultDB db = new HeuristicsResultDB(dbConfiguration);
    HeuristicResult heuristicResult = new HeuristicResult(appId, "attemptId", GCCause.class, 1, 1);
    heuristicResult.addDetail(detail, "value", "This is a new detail");
    mysqld.stop();
    db.createHeuristicResult(heuristicResult);
}