" <t p='5'> there,</t>\n" +
" </rtt>\n" +
"</message>";
Message message = unmarshal(xml, Message.class);
RealTimeText realTimeText = message.getExtension(RealTimeText.class);
Assert.assertNotNull(realTimeText);
Assert.assertEquals(realTimeText.getEvent(), RealTimeText.Event.NEW);
Assert.assertEquals(realTimeText.getSequence(), (Long) 123001L);
Assert.assertEquals(realTimeText.getActions().size(), 7);
Assert.assertTrue(realTimeText.getActions().get(0) instanceof RealTimeText.InsertText);
Assert.assertTrue(realTimeText.getActions().get(1) instanceof RealTimeText.EraseText);
Assert.assertTrue(realTimeText.getActions().get(2) instanceof RealTimeText.InsertText);
Assert.assertTrue(realTimeText.getActions().get(3) instanceof RealTimeText.EraseText);
Assert.assertTrue(realTimeText.getActions().get(4) instanceof RealTimeText.InsertText);
Assert.assertTrue(realTimeText.getActions().get(5) instanceof RealTimeText.EraseText);
Assert.assertTrue(realTimeText.getActions().get(6) instanceof RealTimeText.InsertText);
Assert.assertEquals(((RealTimeText.InsertText) realTimeText.getActions().get(0)).getValue(), "Helo");
Assert.assertEquals(((RealTimeText.InsertText) realTimeText.getActions().get(2)).getValue(), "lo...planet");
Assert.assertEquals(((RealTimeText.InsertText) realTimeText.getActions().get(4)).getValue(), " World");
Assert.assertEquals(((RealTimeText.InsertText) realTimeText.getActions().get(6)).getValue(), " there,");
}