if (stateCanBeChanged) {
Client c = WebClient.client(proxy);
MultivaluedMap<String, String> map = c.getHeaders();
map.putSingle("CustomHeader", actualHeaderName);
c.headers(map);
proxy.echoBookNameAndHeader2(actualBookName);
verifyResponse(c.getResponse(), actualBookName, actualHeaderName);
} else {
verifyResponse(proxy.echoBookNameAndHeader(actualHeaderName, actualBookName),
actualBookName, actualHeaderName);