@Test
    public void shouldStripHeaderWithRegexKey() {
        request.getHeaders().put("sybil", "ramkin");

        StripHeaderBean shb = new StripHeaderBean();
        shb.setPattern("sy.*l");
        shb.setStripType(StripType.KEY);
        shb.setWith(With.REGEX);

        config.getStripHeaders().add(shb);

        policy.apply(request, mContext, config, mRequestChain);

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