ResponseBuilderMap responseBuilders = new ResponseBuilderMap.Builder()
.set(Employee.class, responseBuilder)
.build();
GsonBuilder gsonBuilder = new GsonBuilder()
.registerTypeAdapterFactory(new IdGsonTypeAdapterFactory());
ResourceUrlPaths urlPaths = new ResourceUrlPaths("http://localhost/fake/service/rest",
"/fake", "/service", RESOURCE_PREFIX);
RestClientStub stub = new RestClientStubFake(responseBuilders,
restCallSpecMap, gsonBuilder, ImmutableList.of(RESOURCE_PATH), urlPaths, null);
this.client = new ResourceDepotClient<Employee>(
stub, RESOURCE_PATH, Employee.class, new GsonBuilder(), false);