@Test
public void testDuplicateMethodInterface() {

    ServiceModel model = serviceClassParser.parseServiceClass(DuplicateMethodNamesService.class, settings);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptInterface();
    writer.close();
    String expectedOutput = "\n" +
ort interface DuplicateMethodNamesService {\n" +
 +
 // WARNING: not creating method declaration, java service has multiple methods with the name duplicate\n" +
";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}