test thinking in java