Protocol protocol2 = new Protocol();
protocol2.setDescription("POP3 Protocol");
em.persist(protocol2);
// Set up the initial user and subscriptions
User user = new User();
user.setUsername("user");
user.setPassword("pass");
user.setFullName("John Q. User");
user.setFromAddress("John.User@somewhere.com");
List<Subscription> list = new ArrayList<Subscription>();
user.setSubscriptions(list);
Subscription sub = null;
sub = new Subscription();
sub.setUser(user);
sub.setHost("mail.yahoo.com");
sub.setProtocol(protocol1);