TestFeature testFeature = new TestFeature();
List<Feature> features = new ArrayList<Feature>();
features.add(testFeature);
bean.setFeatures(features);
BookStoreSubresourcesOnly store = bean.create(BookStoreSubresourcesOnly.class, 1, 2, 3);
assertTrue("TestFeature wasn't initialized", testFeature.isInitialized());
BookStoreSubresourcesOnly store2 = store.getItself3("id4");
assertEquals("http://bar/bookstore/1/2/3/id4/sub3",
WebClient.client(store2).getCurrentURI().toString());
}