Effective Java Test and Sample Code