### Question:
HooksApi { public PutHookResponse updateHook(Long hookId, PutHookRequest body) throws ApiException { ApiResponse<PutHookResponse> resp = updateHookWithHttpInfo(hookId, body); return resp.getData(); } HooksApi();  HooksApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call createHookCall(PostHookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); PostHookResponse createHook(PostHookRequest body); ApiResponse<PostHookResponse> createHookWithHttpInfo(PostHookRequest body); com.squareup.okhttp.Call createHookAsync(PostHookRequest body, final ApiCallback<PostHookResponse> callback); com.squareup.okhttp.Call deleteHookCall(Long hookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); DeleteHookResponse deleteHook(Long hookId); ApiResponse<DeleteHookResponse> deleteHookWithHttpInfo(Long hookId); com.squareup.okhttp.Call deleteHookAsync(Long hookId, final ApiCallback<DeleteHookResponse> callback); com.squareup.okhttp.Call retrieveHookCall(Long hookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); GetHookResponse retrieveHook(Long hookId); ApiResponse<GetHookResponse> retrieveHookWithHttpInfo(Long hookId); com.squareup.okhttp.Call retrieveHookAsync(Long hookId, final ApiCallback<GetHookResponse> callback); com.squareup.okhttp.Call retrieveHooksCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); List<GetHookResponse> retrieveHooks(); ApiResponse<List<GetHookResponse>> retrieveHooksWithHttpInfo(); com.squareup.okhttp.Call retrieveHooksAsync(final ApiCallback<List<GetHookResponse>> callback); com.squareup.okhttp.Call templateCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); GetHookTemplateResponse template(); ApiResponse<GetHookTemplateResponse> templateWithHttpInfo(); com.squareup.okhttp.Call templateAsync(final ApiCallback<GetHookTemplateResponse> callback); com.squareup.okhttp.Call updateHookCall(Long hookId, PutHookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); PutHookResponse updateHook(Long hookId, PutHookRequest body); ApiResponse<PutHookResponse> updateHookWithHttpInfo(Long hookId, PutHookRequest body); com.squareup.okhttp.Call updateHookAsync(Long hookId, PutHookRequest body, final ApiCallback<PutHookResponse> callback);  }### Answer:
@Test public void updateHookTest() throws ApiException { Long hookId = null; PutHookRequest body = null; PutHookResponse response = api.updateHook(hookId, body); }