@Test
public void testReset() {

  final MutableCharArray seq = new MutableCharArray("Dawid Weiss");
  assertEquals(seq.toString(), "Dawid Weiss");
  seq.reset("Abcdef");
  assertEquals(seq.toString(), "Abcdef");
  seq.reset("Dawid Weiss".toCharArray(), 1, 3);
  assertEquals(seq, new MutableCharArray("awi"));
  seq.reset("abc");
  int h1 = seq.hashCode();
  seq.reset("def");
  int h2 = seq.hashCode();
  assertTrue(h1 != h2);
}