@Test
    public void shouldStripResponse() {
        response.getHeaders().put("lord", "Vetinari");

        StripHeaderBean shb = new StripHeaderBean();
        shb.setPattern("vetinar\\w+");
        shb.setStripType(StripType.VALUE);
        shb.setWith(With.REGEX);
        shb.setApplyTo(ApplyTo.RESPONSE);

        config.getStripHeaders().add(shb);

        policy.apply(response, mContext, config, mResponseChain);

        assertFalse(response.getHeaders().containsKey("lord"));
        assertTrue(response.getHeaders().isEmpty());
    }
@author Marc Savy {@literal <msavy@redhat.com>}
plugins/simple-header-policy/src/test/java/io/apiman/plugins/simpleheaderpolicy/SimpleHeaderPolicyTest.java