Assistant extends BaseService { public ServiceCall<Void> deleteSession(DeleteSessionOptions deleteSessionOptions) { com.ibm.cloud.sdk.core.util.Validator.notNull( deleteSessionOptions, "deleteSessionOptions cannot be null"); String[] pathSegments = {"v2/assistants", "sessions"}; String[] pathParameters = { deleteSessionOptions.assistantId(), deleteSessionOptions.sessionId() }; RequestBuilder builder = RequestBuilder.delete( RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("conversation", "v2", "deleteSession"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); ResponseConverter<Void> responseConverter = ResponseConverterUtils.getVoid(); return createServiceCall(builder.build(), responseConverter); } Assistant(String versionDate);  Assistant(String versionDate, Authenticator authenticator);  Assistant(String versionDate, String serviceName);  Assistant(String versionDate, String serviceName, Authenticator authenticator); ServiceCall<SessionResponse> createSession(CreateSessionOptions createSessionOptions); ServiceCall<Void> deleteSession(DeleteSessionOptions deleteSessionOptions); ServiceCall<MessageResponse> message(MessageOptions messageOptions); ServiceCall<MessageResponseStateless> messageStateless(
      MessageStatelessOptions messageStatelessOptions); ServiceCall<LogCollection> listLogs(ListLogsOptions listLogsOptions); ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions);  }
@Test public void testDeleteSession() throws InterruptedException { server.enqueue(new MockResponse()); DeleteSessionOptions deleteSessionOptions = new DeleteSessionOptions.Builder().assistantId(ASSISTANT_ID).sessionId(SESSION_ID).build(); service.deleteSession(deleteSessionOptions).execute().getResult(); RecordedRequest request = server.takeRequest(); assertEquals(DELETE_SESSION_PATH, request.getPath()); }