@Before
public void startServer() throws Exception
{
hc = new HttpClient();
ResteasyDeployment deployment = new ResteasyDeployment();
Map<String, String> mediaTypeMappings = new HashMap<String, String>();
mediaTypeMappings.put("xml", "application/xml");
mediaTypeMappings.put("json", "application/json");
deployment.setMediaTypeMappings(mediaTypeMappings);
EmbeddedContainer.start(deployment);
deployment.getRegistry().addPerRequestResource(TestResource.class);
}