Some test code for java app