LBClient extends
    AbstractLoadBalancerAwareClient<LBClient.RibbonRequest, LBClient.RibbonResponse> { static Set<Integer> parseStatusCodes(String statusCodesString) { if (statusCodesString == null || statusCodesString.isEmpty()) { return Collections.emptySet(); } Set<Integer> codes = new LinkedHashSet<Integer>(); for (String codeString : statusCodesString.split(",")) { codes.add(Integer.parseInt(codeString)); } return codes; } LBClient(ILoadBalancer lb, IClientConfig clientConfig); static LBClient create(ILoadBalancer lb, IClientConfig clientConfig); @Override RibbonResponse execute(RibbonRequest request, IClientConfig configOverride); @Override RequestSpecificRetryHandler getRequestSpecificRetryHandler(
                                                                    RibbonRequest request,
                                                                    IClientConfig requestConfig);  }
@Test public void testParseCodes() { assertThat(LBClient.parseStatusCodes("")).isEmpty(); assertThat(LBClient.parseStatusCodes(null)).isEmpty(); assertThat(LBClient.parseStatusCodes("504")).contains(504); assertThat(LBClient.parseStatusCodes("503,504")).contains(503, 504); }