@Test
public void testClear() {

    final HeaderGroup headergroup = new HeaderGroup();
    headergroup.addHeader(new BasicHeader("name", "value"));
    Assert.assertEquals(1, headergroup.getHeaders().length);
    headergroup.clear();
    Assert.assertEquals(0, headergroup.getHeaders().length);
}