@Test
public void testDiscardPayloadQueueingStrategy(){

    // valid DiscardPayloadQueueingStrategy config
    assertThat(QueueingStrategyFactory.buildQueueStrategy(buildHookConfig(new JsonObject().put("type", "discardPayload"))),
            instanceOf(DiscardPayloadQueueingStrategy.class));
    assertThat(QueueingStrategyFactory.buildQueueStrategy(buildHookConfig(new JsonObject().put("type", "discardpayload"))),
            instanceOf(DiscardPayloadQueueingStrategy.class));
    assertThat(QueueingStrategyFactory.buildQueueStrategy(buildHookConfig(new JsonObject().put("type", "DISCARDPAYLOAD"))),
            instanceOf(DiscardPayloadQueueingStrategy.class));
    // invalid DiscardPayloadQueueingStrategy config
    assertThat(QueueingStrategyFactory.buildQueueStrategy(buildHookConfig(new JsonObject().put("typeXX", "discardPayload"))),
            instanceOf(DefaultQueueingStrategy.class));
}