### Question:
CypherUtil { Set<String> getEntailedRelationshipNames(Collection<String> parents) { Set<String> entailedTypes = new HashSet<>(); for (String parent : parents) { entailedTypes.add(parent); Map<String, Object> params = new HashMap<>(); params.put("iri", parent); try (Transaction tx = graphDb.beginTx()) { Result result = graphDb.execute("START parent=node:node_auto_index(iri={iri}) " + "MATCH (parent)<-[:subPropertyOf|equivalentProperty*]-(subProperty) " + "RETURN distinct subProperty.iri as subProperty", params); while (result.hasNext()) { Map<String, Object> map = result.next(); entailedTypes.add((String) map.get("subProperty")); } tx.success(); } } return entailedTypes; } @Inject  CypherUtil(GraphDatabaseService graphDb, CurieUtil curieUtil); Result execute(String query, Multimap<String, Object> params, long timeout, TimeUnit unit); Result execute(String query, long timeout, TimeUnit unit); Result execute(String query, Multimap<String, Object> params); Result execute(String query); Set<RelationshipType> getEntailedRelationshipTypes(Collection<String> parents); @Deprecated String resolveStartQuery(String cypher); String resolveNodeIris(String cypher); String resolveRelationships(String cypher); Map<String, String> getCurieMap();  }### Answer:
@Test public void multipleEntailmentRegex() { Set<String> types = util.getEntailedRelationshipNames(newHashSet("http: assertThat( types, containsInAnyOrder("http: "http: }