@Test
public void testMainStdOut() throws IOException {

    PrintStream old = System.out;
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    System.setOut(new PrintStream(baos));
    try {
        DynamicProxyConfigGenerator.main(ExampleInterface.class.getName());
    } finally {
        System.setOut(old);
    }
    String expected = read("/example-interface-proxy.json");
    expected = expected.replace("\r\n", "\n");
    expected = expected.replace("\n", System.getProperty("line.separator"));
    assertEquals(expected, baos.toString());
}