@Test
    public void shouldSetHeaderOnBoth() {
        AddHeaderBean header = new AddHeaderBean();
        header.setHeaderName("Request-And-Response");
        header.setHeaderValue("Weatherwax");
        header.setOverwrite(false);
        header.setApplyTo(ApplyTo.BOTH);
        header.setValueType(ValueType.STRING);
        config.getAddHeaders().add(header);

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

        assertEquals("Weatherwax", request.getHeaders().get("Request-And-Response"));
        assertEquals(1, request.getHeaders().size());

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

        assertEquals("Weatherwax", response.getHeaders().get("Request-And-Response"));
        assertEquals(1, response.getHeaders().size());
    }
@author Marc Savy {@literal <msavy@redhat.com>}
plugins/simple-header-policy/src/test/java/io/apiman/plugins/simpleheaderpolicy/SimpleHeaderPolicyTest.java