test java behavious