@Test
public void removeInProgressCommitTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        InProgressCommit commit = getThing(IN_PROGRESS_COMMIT_IRI, inProgressCommitFactory, conn);
        Resource additionsResource = getAdditionsResource(IN_PROGRESS_COMMIT_IRI);
        Resource deletionsResource = getDeletionsResource(IN_PROGRESS_COMMIT_IRI);
        assertTrue(conn.size(additionsResource) > 0);
        assertTrue(conn.size(deletionsResource) > 0);
        service.removeInProgressCommit(commit, conn);
        assertFalse(conn.getStatements(null, null, null, IN_PROGRESS_COMMIT_IRI).hasNext());
        assertTrue(conn.size(additionsResource) == 0);
        assertTrue(conn.size(deletionsResource) == 0);
    }
}