@Test
public void testInsertProject() {

    long count = 0;
    String name = "projectName";
    String url = "my/url";
    // We can insert any project.
    executeSuccess(queries.projectInsertStatement(name, url));
    assertEquals(++count, getProjectsCount());
    // We can insert another project with empty url
    executeSuccess(queries.projectInsertStatement("anotherProject", null));
    assertEquals(++count, getProjectsCount());
    // We can insert another any url two times
    executeSuccess(queries.projectInsertStatement("thirdProject", url));
    assertEquals(++count, getProjectsCount());
    // We can't insert the same name two times, whichever the url
    executeNothinhDone(queries.projectInsertStatement(name, url));
    executeNothinhDone(queries.projectInsertStatement(name, null));
    assertEquals(count, getProjectsCount());
}