@Test
public void removeObjectTest() throws Exception {

    try (RepositoryConnection conn = repo.getConnection()) {
        assertTrue(conn.getStatements(null, null, null, RECORD_IRI).hasNext());
        service.removeObject(recordFactory.createNew(RECORD_IRI), conn);
        assertFalse(conn.getStatements(null, null, null, RECORD_IRI).hasNext());
    }
}