@Test
public void updateObjectTest() throws Exception {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        assertTrue(conn.getStatements(null, null, null, RECORD_IRI).hasNext());
        Record newRecord = recordFactory.createNew(RECORD_IRI);
        service.updateObject(newRecord, conn);
        RepositoryResults.asModel(conn.getStatements(null, null, null, RECORD_IRI), MODEL_FACTORY).forEach(statement ->
                assertTrue(newRecord.getModel().contains(statement.getSubject(), statement.getPredicate(), statement.getObject())));
    }
}