@Test
public void testQoSSettingsUpdateWithRulesButNoSentinels(TestContext context){

    QoSHandler qosHandler = new QoSHandler(vertx, storage, qosSettingsPath, new HashMap<>(), prefix);
    HttpServerResponse response = spy(new CustomHttpServerResponse(new CaseInsensitiveHeaders()));
    String rulesWithoutSentinelsConfig = "{" +
            "  \"config\":{" +
            "    \"percentile\":75," +
            "    \"quorum\":40," +
            "    \"period\":5," +
            "    \"minSampleCount\" : 1000," +
            "    \"minSentinelCount\" : 5" +
            "  }," +
            "  \"rules\":{" +
            "    \"/test/myapi1/v1/.*\":{" +
            "      \"reject\":1.2," +
            "      \"warn\":0.5" +
            "    }," +
            "    \"/test/myapi2/v1/.*\":{" +
            "      \"reject\":0.3" +
            "    }" +
            "  }" +
            "}";
    CustomHttpServerRequest request = new CustomHttpServerRequest(QOS_URI, HttpMethod.PUT, rulesWithoutSentinelsConfig, new CaseInsensitiveHeaders(), response);
    qosHandler.handle(request);
    verify(response, times(1)).setStatusCode(eq(StatusCode.BAD_REQUEST.getStatusCode()));
    verify(response, times(1)).setStatusMessage(eq("Bad Request ValidationException: QoS settings contain rules without sentinels"));
}