a java scala test