@Test
public final void testClear () throws Exception {

    final TextParameterDataSegment dataSegment = new TextParameterDataSegment(CHUNK_SIZE);
    assertNotNull(dataSegment);
    assertTrue(dataSegment.getSettings().entrySet().isEmpty());
    dataSegment.add(OperationalTextKey.HEADER_DIGEST, "Yes");
    assertFalse(dataSegment.getSettings().entrySet().isEmpty());
    dataSegment.clear();
    assertNotNull(dataSegment);
    assertTrue(dataSegment.getSettings().entrySet().isEmpty());
}