Test java.util.Date in Java