package org.jboss.resteasy.test.client.resource;

import org.junit.Assert;

import jakarta.ws.rs.client.ClientRequestContext;
import jakarta.ws.rs.client.ClientResponseContext;
import jakarta.ws.rs.client.ClientResponseFilter;
import java.io.IOException;

public class ClientResponseFilterNullHeaderString implements ClientResponseFilter {
   @Override
   public void filter(ClientRequestContext requestContext, ClientResponseContext responseContext) throws IOException {
      String header = responseContext.getHeaderString("header1");
      Assert.assertNotNull("The header is empty", header);
      Assert.assertTrue("The header value doesn't match the expected one", header.equals(""));
   }
}
