@Test
public void removeObjectWithRelationshipTest() throws Exception {

    try (RepositoryConnection conn = repo.getConnection()) {
        assertTrue(conn.getStatements(null, null, null, BRANCH_IRI).hasNext());
        service.removeObjectWithRelationship(BRANCH_IRI, VERSIONED_RDF_RECORD_IRI, VersionedRDFRecord.branch_IRI, conn);
        assertFalse(conn.getStatements(null, null, null, BRANCH_IRI).hasNext());
        assertFalse(conn.getStatements(VERSIONED_RDF_RECORD_IRI, VALUE_FACTORY.createIRI(VersionedRDFRecord.branch_IRI), BRANCH_IRI, VERSIONED_RDF_RECORD_IRI).hasNext());
    }
}