CustomRetryStrategy strategy = new CustomRetryStrategy();
strategy.setMaxNumberOfRetries(5);
strategy.setAlternateAddresses(alternateAddresses);
feature.setStrategy(strategy);
BookStore store = getBookStore(address, feature);
try {
store.getBook("1");
fail("Exception expected");
} catch (ClientWebApplicationException ex) {
assertEquals(10, strategy.getTotalCount());
assertEquals(5, strategy.getAddressCount(address));
assertEquals(5, strategy.getAddressCount(address2));