TestFeature testFeature = new TestFeature();
List<AbstractFeature> features = new ArrayList<AbstractFeature>();
features.add((AbstractFeature)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());
}