@RunAsClient
public void simpleClientToServerCall() throws URISyntaxException, MalformedURLException {
Assert.assertNotNull(url);
String resourcePath = TEST_SERVLET_PATH + TestController.PATH;
RestClient restClient = new RestClient(new ClientConfig());
URL resourceURL = new URL(url.toExternalForm() + resourcePath);
Resource resource = restClient.resource(resourceURL.toURI());
// invoke GET on the resource and check the result
Assert.assertEquals("Hello CDI", resource.get(SyndFeed.class).getTitle().getValue());
}