java test and longest increasing