Java test task