@Test
public void testStartRequest() throws Exception {

    final Mmi mmi = new Mmi();
    final StartRequest request = new StartRequest();
    mmi.setStartRequest(request);
    request.setRequestId("request1");
    request.setSource("source1");
    request.setTarget("target1");
    request.setContext("context1");
    final ContentURLType url = new ContentURLType();
    url.setHref("http://nowhere");
    request.setContentURL(url);
    final JAXBContext ctx = JAXBContext.newInstance(Mmi.class);
    final Marshaller marshaller = ctx.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    marshaller.marshal(mmi, out);
    System.out.println("1*" + out);
    final Unmarshaller unmarshaller = ctx.createUnmarshaller();
    final ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
    final Object o = unmarshaller.unmarshal(in);
    System.out.println("2*" + o);
}