1. Copy {WSO2SPHome}/samples/artifacts/0049/keyvalue-mapper-sample.siddhi file to {WSO2SPHome}/wso2/worker/deployment/siddhi-files

2. Start the worker using ./{WSO2SPHome}/bin/worker.sh

3. Navigate to {WSO2SPHome}/samples/sample-clients/tcp-client and run ant command without arguments
