Util.java implementation, and Test class