closeEM(em);
}
}
private Annuity createAnnuity(EntityManager em) {
FixedAnnuity fixedAnn = new FixedAnnuity();
((FixedAnnuity) fixedAnn).setRate(10.0);
fixedAnn.setId(getId());
fixedAnn.setAmount(500.00);
fixedAnn.setAccountNumber("123456");
em.persist(fixedAnn);
EquityAnnuity equityAnn = new EquityAnnuity();
equityAnn.setId(getId());
equityAnn.setAmount(500.00);