Echo example

Add examples for Java echo process to test client and in a Java client lib example.