@Test
public void testCommitInsertionStatement() {

    long count = 0;
    Commit commit = generateCommit("sha", 1);
    // We can insert any commit
    executeSuccess(queries.commitInsertionStatement(projectId, commit, GitDiff.EMPTY));
    assertEquals(++count, getCommitCount());
    // We can any other same sha1 in another project
    int secondProjectID = createProject("anotherProject");
    executeSuccess(queries.commitInsertionStatement(secondProjectID, commit, GitDiff.EMPTY));
    assertEquals(++count, getCommitCount());
    // We can any other sha1 commit
    Commit anotherSha = generateCommit("anotherSha", commit.ordinal + 1);
    executeSuccess(queries.commitInsertionStatement(projectId, anotherSha, GitDiff.EMPTY));
    assertEquals(++count, getCommitCount());
    // We can insert any character sequence in the commit message
    Commit anotherMessage = generateCommit("thirdSha", anotherSha.ordinal + 1,
            "test $$ subString $$ ^$ should ' \" work any way $$ for sure @&é\"'(§è!çà' $");
    executeSuccess(queries.commitInsertionStatement(projectId, anotherMessage, GitDiff.EMPTY));
    assertEquals(++count, getCommitCount());
    // We can't insert the same sha1
    executeNothinhDone(queries.commitInsertionStatement(projectId, commit, GitDiff.EMPTY));
    assertEquals(count, getCommitCount());
}