new BasicHeader("Name", " ,token3"),
new BasicHeader("Name", ", token4"),
new BasicHeader("Name", " , token5"),
};
HeaderIterator hit = new BasicHeaderIterator(headers, null);
TokenIterator ti = new BasicTokenIterator(hit);
assertTrue(ti.hasNext());
assertEquals("token0", "token0", ti.nextToken());
assertTrue(ti.hasNext());
assertEquals("token1", "token1", ti.nextToken());
assertTrue(ti.hasNext());
assertEquals("token2", "token2", ti.nextToken());
assertTrue(ti.hasNext());
assertEquals("token3", "token3", ti.nextToken());
assertTrue(ti.hasNext());
assertEquals("token4", "token4", ti.nextToken());
assertTrue(ti.hasNext());
assertEquals("token5", "token5", ti.nextToken());
assertFalse(ti.hasNext());
}