@Test
public void testQoSSettingsUpdateWithInvalidPercentileValues(TestContext context){

    QoSHandler qosHandler = new QoSHandler(vertx, storage, qosSettingsPath, new HashMap<>(), prefix);
    HttpServerResponse response = spy(new CustomHttpServerResponse(new CaseInsensitiveHeaders()));
    String percentileNotAnyOfExpectedNumber = "{" +
            "  \"config\":{" +
            "    \"percentile\":11," +
            "    \"quorum\":40," +
            "    \"period\":5," +
            "    \"minSampleCount\" : 1000," +
            "    \"minSentinelCount\" : 5" +
            "  }" +
            "}";
    CustomHttpServerRequest request = new CustomHttpServerRequest(QOS_URI, HttpMethod.PUT, percentileNotAnyOfExpectedNumber, new CaseInsensitiveHeaders(), response);
    qosHandler.handle(request);
    verify(response, times(1)).setStatusCode(eq(StatusCode.BAD_REQUEST.getStatusCode()));
    verify(response, times(1)).setStatusMessage(eq("Bad Request Validation failed"));
    String percentileNotANumber = "{" +
            "  \"config\":{" +
            "    \"percentile\": \"boom\"," +
            "    \"quorum\":40," +
            "    \"period\":5," +
            "    \"minSampleCount\" : 1000," +
            "    \"minSentinelCount\" : 5" +
            "  }" +
            "}";
    response = spy(new CustomHttpServerResponse(new CaseInsensitiveHeaders()));
    request = new CustomHttpServerRequest(QOS_URI, HttpMethod.PUT, percentileNotANumber, new CaseInsensitiveHeaders(), response);
    qosHandler.handle(request);
    verify(response, times(1)).setStatusCode(eq(StatusCode.BAD_REQUEST.getStatusCode()));
    verify(response, times(1)).setStatusMessage(eq("Bad Request Validation failed"));
}