public void testIfMatchWithMatchingETag_IfNonMatchWithMatchingETag(String fromField)
{
HttpClient client = new HttpClient();
GetMethod method = createGetMethod("/etag" + fromField);
method.addRequestHeader(HttpHeaderNames.IF_MATCH, "1");
method.addRequestHeader(HttpHeaderNames.IF_NONE_MATCH, "1");
try
{
int status = client.executeMethod(method);
Assert.assertEquals(status, 304);
Assert.assertEquals("1", method.getResponseHeader(HttpHeaderNames.ETAG).getValue());