### Question:
ClusterTrie { public List<String> getInvalidInstances() { return _invalidInstances; } ClusterTrie(final List<String> liveNodes,
      final Map<String, InstanceConfig> instanceConfigMap, ClusterConfig clusterConfig); TrieNode getRootNode(); String[] getTopologyKeys(); String getFaultZoneType(); List<String> getInvalidInstances(); Set<String> getPathUnderNode(TrieNode node); TrieNode getNode(LinkedHashMap<String, String> domainMap); List<TrieNode> getStartNodes(String domainType); static final String DELIMITER; static final String CONNECTOR; }### Answer:
@Test public void testConstructionNormalWithInvalidConfig() { String instance = "invalidInstance"; InstanceConfig config = new InstanceConfig(instance); config.setDomain(String.format("invaliddomain=%s, zone=%s, rack=%s, host=%s", 1, 2, 3, 4)); _instanceConfigMap.put(instance, config); try { _trie = new ClusterTrie(_instanceNames, _instanceConfigMap, _clusterConfig); } catch (HelixException e) { Assert.fail("Not expecting HelixException"); } Assert.assertEquals(_trie.getInvalidInstances().size(), 1); Assert.assertEquals(_trie.getInvalidInstances().get(0), instance ); _instanceConfigMap.remove(instance); }