assertEquals("unexpected id", 123L, book.getId());
}
private FailoverFeature getFeature(String ...address) {
FailoverFeature feature = new FailoverFeature();
List<String> alternateAddresses = new ArrayList<String>();
for (String s : address) {
alternateAddresses.add(s);
}
SequentialStrategy strategy = new SequentialStrategy();
strategy.setAlternateAddresses(alternateAddresses);
feature.setStrategy(strategy);
LoadDistributorTargetSelector selector = new LoadDistributorTargetSelector();
selector.setFailover(false);
feature.setTargetSelector(selector);
return feature;
}