Set timeout for web service request in apache cxf

I am working on the integration testcases, as part of that different testcase i have set http timeout for a request means i would like to issue the http request to server but timeout should happen from client side before it receives the request. Since i am using CXF, i have changed as according the solution provided in official site, How to configure the HTTPConduit for the SOAP Client?

I already a question exists, changing client timeout for a particular request in Apache CXF

My problem, I have java classes generated from cxf codegen plugin, where a interface is generated which has all the soap web service operations.

    URL wsdl = getClass().getResource("wsdl/CustomerService_1.wsdl");
    QName serviceName = new QName("", "CustomerService_1");
    QName portName =
            new QName("", "CustomerService_1PortTypeSoap11");
    CustomerService_1 service = new CustomerService_1(wsdl, serviceName);
    CustomerService1PortType customerServicePortType = service.getPort(portName, CustomerService1PortType.class);

    Client client = ClientProxy.getClient(customerServicePortType);
    HTTPConduit http = (HTTPConduit) client.getConduit();

    HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();



Tried different ways those are not working, will be great if you give inputs on this.