### Question:
CypherUtil { public Set<RelationshipType> getEntailedRelationshipTypes(Collection<String> parents) { Set<String> relationshipNames = getEntailedRelationshipNames(parents); Collection<RelationshipType> relationshipTypes = Collections.emptySet(); try (Transaction tx = graphDb.beginTx()) { relationshipTypes = transform(relationshipNames, new Function<String, RelationshipType>() { @Override public RelationshipType apply(String name) { return RelationshipType.withName(name); } }); tx.success(); } return new HashSet<RelationshipType>(relationshipTypes); } @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_types() { Set<RelationshipType> types = util.getEntailedRelationshipTypes(newHashSet("http: Collection<String> typeNames = transform(types, new Function<RelationshipType, String>() { @Override public String apply(RelationshipType arg0) { return arg0.name(); } }); assertThat( typeNames, containsInAnyOrder("http: "http: }