UserAccount { public String getBiography() { return biography; } UserAccount(); Long getAccountId(); void setAccountId(Long accountId); Date getAccountCreationDate(); void setAccountCreationDate(Date accountCreationDate); String getUsername(); void setUsername(String username); String getEmailAddress(); void setEmailAddress(String emailAddress); String getBiography(); void setBiography(String biography); String getBiographyRaw(); void setBiographyRaw(String biographyRaw); @Override String toString();  }
@Test public void testBioDecrypt() { UserAccountManager mgr = new UserAccountManager(); String bio = "Round the rugged rock the ragged rascal ran."; mgr.createAndStoreUserAccount("johntestbio.smith", "testmyotherpasswordcleartext", "johntestbio@smith.com", bio); assertEquals(bio, mgr.getBiography("johntestbio.smith")); HibernateUtil.getSessionFactory().close(); }