    @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" +
"export interface SimpleService1 {\n" +
"\n" +
"    // endpoints for service class: SimpleService1\n" +
"    method1(): FooType<string>;\n" +
"\n" +
"    // endpoints for service class: SimpleService2\n" +
"    method2(): FooType<string>;\n" +
"}\n";
        assertEquals(expectedOutput, new String(stream.toByteArray()));
    }