@Test
public void plainTextTest() {

    ServiceModel model = serviceClassParser.parseServiceClass(PlainTextService.class, settings);
    ImmutableServiceEndpointParameterModel expectedParameterModel = ImmutableServiceEndpointParameterModel.builder()
                                                                                                          .javaType(String.class)
                                                                                                          .tsType(TsType.String)
                                                                                                          .build();
    ImmutableServiceEndpointModel expectedEndpointModel = ImmutableServiceEndpointModel.builder()
                                                                                       .javaReturnType(String.class)
                                                                                       .tsReturnType(TsType.String)
                                                                                       .addParameters(expectedParameterModel)
                                                                                       .endpointName("plainText")
                                                                                       .endpointPath("plainText")
                                                                                       .endpointMethodType("GET")
                                                                                       .endpointRequestMediaType(MediaType.TEXT_PLAIN)
                                                                                       .endpointResponseMediaType(MediaType.TEXT_PLAIN)
                                                                                       .build();
    InnerServiceModel innerServiceModel = ImmutableInnerServiceModel.builder()
                                                                    .addEndpointModels(expectedEndpointModel)
                                                                    .servicePath("plainTextService")
                                                                    .name("PlainTextService")
                                                                    .build();
    ServiceModel expectedServiceModel = ImmutableServiceModel.builder()
                                                     .addInnerServiceModels(innerServiceModel)
                                                     .name("PlainTextService")
                                                     .addReferencedTypes(String.class)
                                                     .build();
    assertEquals(expectedServiceModel, model);
}