/** Test of getStates method inherited from MessageUnit */
  @Test
  public void test25_GetProcessingStates() {
    em.getTransaction().begin();
    List<UserMessage> tps = em.createQuery("from UserMessage", UserMessage.class).getResultList();
    UserMessage instance;

    assertTrue(tps.size() == 1);
    instance = tps.get(0);

    assertTrue(instance.getProcessingStates().size() == 2);
    assertEquals(T_PROCSTATE_2.getName(), instance.getProcessingStates().get(0).getName());
    assertEquals(T_PROCSTATE_1.getName(), instance.getProcessingStates().get(1).getName());

    em.getTransaction().commit();
  }
  /** Test of setProcessingState method inherited from MessageUnit */
  @Test
  public void test24_SetProcessingState() {
    em.getTransaction().begin();
    List<UserMessage> tps = em.createQuery("from UserMessage", UserMessage.class).getResultList();
    UserMessage instance;

    assertTrue(tps.size() == 1);
    instance = tps.get(0);

    T_PROCSTATE_2.setStartTime(new Date());

    instance.setProcessingState(T_PROCSTATE_2);

    em.persist(T_PROCSTATE_2);

    em.getTransaction().commit();
  }