@Test
public void parseSimpleClassTest() {

    ServiceModel model = serviceClassParser.parseServiceClass(TestServiceClass.class, settings);
    assertEquals(1, model.innerServiceModels().size());
    assertEquals(ImmutableSet.of(String.class), model.referencedTypes());
    assertEquals("TestServiceClass", model.name());
    assertEquals("testService", model.innerServiceModels().get(0).servicePath());
    ServiceEndpointParameterModel aParam = ImmutableServiceEndpointParameterModel.builder().pathParam("a").javaType(String.class).tsType(TsType.String).build();
    ServiceEndpointParameterModel bParam = ImmutableServiceEndpointParameterModel.builder().pathParam("b").javaType(String.class).tsType(TsType.String).build();
    ImmutableServiceEndpointModel stringGetterEndpointModel = ImmutableServiceEndpointModel.builder()
                                                                                           .javaReturnType(String.class)
                                                                                           .tsReturnType(TsType.String)
                                                                                           .parameters(Lists.newArrayList(aParam, bParam))
                                                                                           .endpointName("stringGetter")
                                                                                           .endpointPath("stringGetter/{a}/{b}")
                                                                                           .endpointMethodType("GET")
                                                                                           .build();
    assertEquals(model.innerServiceModels().get(0).endpointModels(), Lists.newArrayList(stringGetterEndpointModel));
}