/** Test of setMessageProperties method, of class UserMessage. */ @Test public void test11_SetMessageProperties() { em.getTransaction().begin(); List<UserMessage> tps = em.createQuery("from UserMessage", UserMessage.class).getResultList(); UserMessage instance; assertTrue(tps.size() == 1); instance = tps.get(0); Collection<Property> props = new HashSet<Property>(); props.add(new Property(T_PROP_1_NAME, T_PROP_1_VALUE)); props.add(new Property(T_PROP_2_NAME, T_PROP_2_VALUE, T_PROP_2_TYPE)); instance.setMessageProperties(props); em.persist(instance); em.getTransaction().commit(); }