@Test
public void multipleServiceClassParseTest() {

    ServiceModel model = serviceClassParser.parseServiceClass(SimpleService1.class, settings, SimpleService2.class);
    assertEquals(2, model.innerServiceModels().size());
    assertEquals(ImmutableSet.of(String.class), model.referencedTypes());
    assertEquals("SimpleService1", model.name());
    ImmutableServiceEndpointModel method1Model = ImmutableServiceEndpointModel.builder()
                                                                              .javaReturnType(String.class)
                                                                              .tsReturnType(TsType.String)
                                                                              .parameters(Lists.newArrayList())
                                                                              .endpointName("method1")
                                                                              .endpointPath("method1")
                                                                              .endpointMethodType("GET")
                                                                              .build();
    ImmutableServiceEndpointModel method2Model = ImmutableServiceEndpointModel.builder()
                                                                              .javaReturnType(String.class)
                                                                              .tsReturnType(TsType.String)
                                                                              .parameters(Lists.newArrayList())
                                                                              .endpointName("method2")
                                                                              .endpointPath("method2")
                                                                              .endpointMethodType("GET")
                                                                              .build();
    InnerServiceModel innerService1 = ImmutableInnerServiceModel.builder()
                                                                .addEndpointModels(method1Model)
                                                                .servicePath("simple1")
                                                                .name("SimpleService1")
                                                                .build();
    InnerServiceModel innerService2 = ImmutableInnerServiceModel.builder()
                                                                .addEndpointModels(method2Model)
                                                                .servicePath("simple2")
                                                                .name("SimpleService2")
                                                                .build();
    ServiceModel expectedServiceModel = ImmutableServiceModel.builder()
                                                     .addInnerServiceModels(innerService1, innerService2)
                                                     .name("SimpleService1")
                                                     .addReferencedTypes(String.class)
                                                     .build();
    assertEquals(expectedServiceModel, model);
}