@Test
public void addObjectTest() throws Exception {

    // Setup
    Record record = recordFactory.createNew(EMPTY_IRI);
    try (RepositoryConnection conn = repo.getConnection()) {
        assertFalse(conn.getStatements(null, null, null, EMPTY_IRI).hasNext());
        service.addObject(record, conn);
        assertEquals(record.getModel().size(), RepositoryResults.asModel(conn.getStatements(null, null, null, EMPTY_IRI), MODEL_FACTORY).size());
    }
}