@Test
public void testDuplicateMethodClass() {

    ServiceModel model = serviceClassParser.parseServiceClass(DuplicateMethodNamesService.class, settings);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptClass();
    writer.close();
    String expectedOutput = "\n" +
ort class DuplicateMethodNamesServiceImpl implements DuplicateMethodNamesService {\n" +
 +
 private httpApiBridge: HttpApiBridge;\n" +
 constructor(httpApiBridge: HttpApiBridge) {\n" +
     this.httpApiBridge = httpApiBridge;\n" +
 }\n" +
";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}