### Question:
DynamicProxyConfigGenerator { public static String generateProxyConfig(CommandSpec[] specs, String[] interfaceClasses) { Visitor visitor = new Visitor(interfaceClasses); for (CommandSpec spec : specs) { visitor.visitCommandSpec(spec); } return visitor.toString(); }  static void main(String... args); static String generateProxyConfig(CommandSpec[] specs, String[] interfaceClasses);  }### Answer:
@Test public void testMultipleInterfaces() { String[] interfaceNames = { "com.example.Interface1,com.example.Interface2", "com.other.Interface1,com.other.Interface2", }; String actual = DynamicProxyConfigGenerator.generateProxyConfig(new CommandSpec[0], interfaceNames); String expected = String.format("" + "[%n" + " [\"com.example.Interface1\", \"com.example.Interface2\"],%n" + " [\"com.other.Interface1\", \"com.other.Interface2\"]%n" + "]%n"); assertEquals(expected, actual); }