    @Test
    public void testClone()
    {

        TransformationContext context = new TransformationContext();
        context.setId("id");
        context.setSyntax(Syntax.XWIKI_2_0);
        XDOM xdom = new XDOM(Arrays.<Block>asList(new WordBlock("test")));
        context.setXDOM(xdom);

        TransformationContext newContext = context.clone();
        assertNotSame(context, newContext);
        assertEquals("id", newContext.getId());
        assertEquals(Syntax.XWIKI_2_0, newContext.getSyntax());
        assertEquals(xdom, newContext.getXDOM());
    }