Test java application