### Question:
AccountingRulesApi { public List<GetAccountRulesResponse> retrieveAllAccountingRules() throws ApiException { ApiResponse<List<GetAccountRulesResponse>> resp = retrieveAllAccountingRulesWithHttpInfo(); return resp.getData(); } AccountingRulesApi();  AccountingRulesApi(ApiClient apiClient); ApiClient getApiClient(); void setApiClient(ApiClient apiClient); com.squareup.okhttp.Call createAccountingRuleCall(PostAccountingRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); PostAccountingRulesResponse createAccountingRule(PostAccountingRulesRequest body); ApiResponse<PostAccountingRulesResponse> createAccountingRuleWithHttpInfo(PostAccountingRulesRequest body); com.squareup.okhttp.Call createAccountingRuleAsync(PostAccountingRulesRequest body, final ApiCallback<PostAccountingRulesResponse> callback); com.squareup.okhttp.Call deleteAccountingRuleCall(Long accountingRuleId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); DeleteAccountingRulesResponse deleteAccountingRule(Long accountingRuleId); ApiResponse<DeleteAccountingRulesResponse> deleteAccountingRuleWithHttpInfo(Long accountingRuleId); com.squareup.okhttp.Call deleteAccountingRuleAsync(Long accountingRuleId, final ApiCallback<DeleteAccountingRulesResponse> callback); com.squareup.okhttp.Call retreiveAccountingRuleCall(Long accountingRuleId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); AccountingRuleData retreiveAccountingRule(Long accountingRuleId); ApiResponse<AccountingRuleData> retreiveAccountingRuleWithHttpInfo(Long accountingRuleId); com.squareup.okhttp.Call retreiveAccountingRuleAsync(Long accountingRuleId, final ApiCallback<AccountingRuleData> callback); com.squareup.okhttp.Call retrieveAllAccountingRulesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); List<GetAccountRulesResponse> retrieveAllAccountingRules(); ApiResponse<List<GetAccountRulesResponse>> retrieveAllAccountingRulesWithHttpInfo(); com.squareup.okhttp.Call retrieveAllAccountingRulesAsync(final ApiCallback<List<GetAccountRulesResponse>> callback); com.squareup.okhttp.Call retrieveTemplateCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); GetAccountRulesTemplateResponse retrieveTemplate(); ApiResponse<GetAccountRulesTemplateResponse> retrieveTemplateWithHttpInfo(); com.squareup.okhttp.Call retrieveTemplateAsync(final ApiCallback<GetAccountRulesTemplateResponse> callback); com.squareup.okhttp.Call updateAccountingRuleCall(Long accountingRuleId, PutAccountingRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener); PutAccountingRulesResponse updateAccountingRule(Long accountingRuleId, PutAccountingRulesRequest body); ApiResponse<PutAccountingRulesResponse> updateAccountingRuleWithHttpInfo(Long accountingRuleId, PutAccountingRulesRequest body); com.squareup.okhttp.Call updateAccountingRuleAsync(Long accountingRuleId, PutAccountingRulesRequest body, final ApiCallback<PutAccountingRulesResponse> callback);  }### Answer:
@Test public void retrieveAllAccountingRulesTest() throws ApiException { List<GetAccountRulesResponse> response = api.retrieveAllAccountingRules(); }