appperfect java code test