@Test
public void testEnumClass() {

    ServiceModel model = serviceClassParser.parseServiceClass(EnumClass.class, settings);
    ServiceEmitter serviceEmitter = new ServiceEmitter(model, settings, writer);
    serviceEmitter.emitTypescriptTypes(settings, Lists.newArrayList());
    writer.close();
    String expectedOutput = "\n" +
 export type MyEnum = \"VALUE1\" | \"VALUE2\";\n" +
n    // Added by 'EnumConstantsExtension' extension\n\n" +
 export const MyEnum = {\n" +
     VALUE1: <MyEnum>\"VALUE1\",\n" +
     VALUE2: <MyEnum>\"VALUE2\",\n" +
 }\n";
    assertEquals(expectedOutput, new String(stream.toByteArray()));
}