19.3. Testing the camel-jbossdatagrid-fuse Quickstart

To test the local_cache_producer create a CSV file in the incomingFolderPath, previously specified. The following command will generate a file with a single entry:
echo "1,Bill,Gates,59" > $incomingFolderPath/sample.csv
Once the file has been removed from the directory then the producer has successfully parsed the file. Proceed to testing the consumer.
To test the local_cache_consumer navigate to http://127.0.0.1:8282/cache/get/1 in a web browser. This will query the cache for the entry with an Id of 1, which was specified above. The following JSON of the created POJO should be returned:
{"id":1,"firstName":"Bill","lastName":"Gates","age":59}