class UserApi {

    public User getUserByName(String username) throws IOException {
        HttpResponse response = getUserByNameForHttpResponse(username);
        TypeReference<User> typeRef = new TypeReference<User>() {};
        return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
    }

    public  UserApi();
    public  UserApi(ApiClient apiClient);

}