Java Class Design Tests