@Test
public void list() throws Exception {

    String users = WebClient.create("http://localhost:4204/rest-on-ejb")
            .path("/user/list")
            .get(String.class);
    assertEquals(
            inline("<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                    "<users>" +
                    "  <user>" +
                    "    <email>foo@foo.com</email>" +
                    "    <fullname>foo</fullname>" +
                    "    <id>1</id>" +
                    "    <password>foopwd</password>" +
                    "  </user>" +
                    "  <user>" +
                    "    <email>bar@bar.com</email>" +
                    "    <fullname>bar</fullname>" +
                    "    <id>2</id>" +
                    "    <password>barpwd</password>" +
                    "  </user>" +
                    "</users>"), inline(users));
}