Test task with Java