Java test work