Simple example of using java agent.