@Test
public void testMultipleClasses() {

    ServiceModel model = serviceClassParser.parseServiceClass(SimpleService1.class, settings, SimpleService2.class);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptInterface();
    writer.close();
    String expectedOutput = "\n" +
ort interface SimpleService1 {\n" +
 +
 // endpoints for service class: SimpleService1\n" +
 method1(): FooType<string>;\n" +
 +
 // endpoints for service class: SimpleService2\n" +
 method2(): FooType<string>;\n" +
";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}