Remove unused import.
Add test for list handling in Java.