@Test
public void testConstructorWithMessageEntity() throws Exception
{

    long ts = System.currentTimeMillis();
    when( messageEntity.getCreateDate() ).thenReturn( ts );
    envelope = new Envelope( messageEntity );
    TestCase.assertEquals( envelope.getCreateDate(), new Timestamp( ts ) );
}