new BasicHeader("naMe", "value2=whatever"),
new BasicHeader("namE", "value3;tag=nil"),
};
// without filter, using plain next()
HeaderIterator hit = new BasicHeaderIterator(headers, null);
assertTrue(hit.hasNext());
assertEquals("0", headers[0], hit.next());
assertTrue(hit.hasNext());
assertEquals("1", headers[1], hit.next());
assertTrue(hit.hasNext());
assertEquals("2", headers[2], hit.next());
assertTrue(hit.hasNext());
assertEquals("3", headers[3], hit.next());
assertFalse(hit.hasNext());
hit = new BasicHeaderIterator(headers, null);
assertTrue(hit.hasNext());
try {
hit.remove();
fail("remove not detected");
} catch (UnsupportedOperationException uox) {
// expected
}