Java code testing.