### Question:
Expander { public static void validate(String textWithMacros) throws SyntaxException { try { expand(textWithMacros, null, null, null); } catch (IncompleteClusterException e) { } }  static void validate(String textWithMacros); static String expand(String textWithMacros, Cluster cluster, Set<Node> nodes, Node node); static JsonElement expand(JsonElement json, @Nullable java.util.List<String> path, Cluster cluster,
                                   Set<Node> nodes, Node node);  }### Answer:
@Test public void testValidation() throws SyntaxException { Expander.validate("zookeeper.quorum = %join(map(host.service.zk,'$:2181'),',')%"); Expander.validate("this %% is not a macro, but this is: %host.service.zk%"); }