new WadlImporter(service).initFromWadl(RestUtilsTest.class.getResource("/wadl/YahooSearch.wadl").toURI().toString());
assertEquals(1, service.getOperationCount());
assertEquals("/NewsSearchService/V1/", service.getBasePath());
RestResource resource = service.getOperationAt(0);
assertEquals(1, resource.getPropertyCount());
assertEquals("appid", resource.getPropertyAt(0).getName());
assertNotNull(resource.getProperty("appid"));
assertEquals(1, resource.getRequestCount());
RestRequest request = resource.getRequestAt(0);
assertEquals(RestRequestInterface.HttpMethod.GET, request.getMethod());
assertEquals(9, request.getPropertyCount());
}