@Test
public void testAdditionalClassesToOutput() {

    ServiceModel model = serviceClassParser.parseServiceClass(TestServiceClass.class, settings);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptTypes(settings, Lists.newArrayList(MyObject.class));
    writer.close();
    String expectedOutput = "\n" +
 export interface MyObject {\n" +
     y: MyObject;\n" +
 }\n\n\n    // Added by 'EnumConstantsExtension' extension\n";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}