@Test
public void testComplexServiceClassEmitInterface() {

    ServiceModel model = serviceClassParser.parseServiceClass(TestComplexServiceClass.class, settings);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptInterface();
    writer.close();
    String expectedOutput = "\n" +
ort interface TestComplexServiceClass {\n" +
 allOptionsPost(a: string, dataObject: DataObject, b?: number): FooType<GenericObject<MyObject>>;\n" +
 queryGetter(x?: boolean): FooType<MyObject>;\n" +
 simplePut(dataObject: DataObject): FooType<ImmutablesObject>;\n" +
";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}