otherBuilds.add(new TriggeredItemEntity(12, "projectZ"));
context.setOthers(otherBuilds);
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());
assertTrue(readT.getEntity().getEvent() instanceof PatchsetCreated);
assertNotNull(readT.getEntity().getThisBuild());