public void testUpdateAccountBeneficiaries() {
Map<String, Percentage> allocationPercentages = new HashMap<String, Percentage>();
allocationPercentages.put("Annabelle", Percentage.valueOf("25%"));
allocationPercentages.put("Corgan", Percentage.valueOf("75%"));
accountManager.updateBeneficiaryAllocationPercentages(Long.valueOf(1), allocationPercentages);
Account account = accountManager.getAccount(Long.valueOf(1));
assertEquals("Invalid adjusted percentage", Percentage.valueOf("25%"), account.getBeneficiary("Annabelle")
.getAllocationPercentage());
assertEquals("Invalid adjusted percentage", Percentage.valueOf("75%"), account.getBeneficiary("Corgan")
.getAllocationPercentage());
}