MockitoAnnotations.initMocks(this);
this.restfulie = mock(Restfulie.class);
when(restfulie.newRelationBuilder()).thenReturn(builder);
Configuration config = mock(Configuration.class);
when(config.getApplicationPath()).thenReturn("http://www.caelum.com.br");
xstream = new XStream(new JsonHierarchicalStreamDriver());
ReflectionConverter base = new ReflectionConverter(xstream.getMapper(), xstream.getReflectionProvider());
xstream.registerConverter(new LinkConverterJSON(base, restfulie, config));