@Test
public void TestRetryBudgetRatioBeanValidation()
{

    assertValidates(new BalancingHttpClientConfig().setRetryBudgetRatio(new BigDecimal(0)));
    assertFailsValidation(new BalancingHttpClientConfig().setRetryBudgetRatio(new BigDecimal(-1).movePointLeft(3)),
            "retryBudgetRatio", "must be greater than or equal to 0", Min.class);
    assertValidates(new BalancingHttpClientConfig().setRetryBudgetRatio(new BigDecimal(1000)));
    assertFailsValidation(new BalancingHttpClientConfig().setRetryBudgetRatio(new BigDecimal(10001).movePointLeft(1)),
            "retryBudgetRatio", "must be less than or equal to 1000", Max.class);
}