### Question:
DomainLookupsCache { public List<CanConnect> getConnectionRules() { return connectionRules; } DomainLookupsCache(final DefinitionManager definitionManager,
                       final DefinitionsCacheRegistry definitionsRegistry,
                       final String defSetId); Set<String> getDefinitions(final String label); void clear(); String getDefinitionSetId(); List<CanConnect> getConnectionRules(); RuleSet getRuleSet();  }### Answer:
@Test public void testCacheTheConnectionRules() { List<CanConnect> rules = tested.getConnectionRules(); assertEquals(1, rules.size()); assertEquals(canConnect1To2, rules.get(0)); }