context.setThisBuild(entity);
context.setOthers(new LinkedList<TriggeredItemEntity>());
TestMarshalClass t = new TestMarshalClass(context, "Bobby", new TestMarshalClass(context, "SomeoneElse"));
XStream xStream = new XStream2();
xStream.registerConverter(new TriggerContextConverter());
String xml = xStream.toXML(t);
TestMarshalClass readT = (TestMarshalClass)xStream.fromXML(xml);
assertNotNull(readT.getEntity());
assertNotNull(readT.getEntity().getEvent());
assertNotNull(readT.getEntity().getThisBuild());
assertThat("Event is not a ChangeBasedEvent", readT.getEntity().getEvent(), instanceOf(ChangeBasedEvent.class));