ServiceDefinitionBuilder { public static FullServiceDefinition buildFullDefinition(final Class<?> interfaceClass) { FullServiceDefinition sd = new FullServiceDefinition(); build(sd, interfaceClass); return sd; } private  ServiceDefinitionBuilder(); static ServiceDefinition build(final Class<?> interfaceClass); static FullServiceDefinition buildFullDefinition(final Class<?> interfaceClass); static FullServiceDefinition buildFullDefinition(final Class<?> interfaceClass, Map<String, String> params); static void build(T sd, final Class<?> interfaceClass); static String schema(final Class<?> clazz);  }
@Test public void testBuilderComplextObject() { FullServiceDefinition fullServiceDefinition = ServiceDefinitionBuilder.buildFullDefinition(DemoService.class); checkComplextObjectAsParam(fullServiceDefinition); }