/*! #if ($TemplateOptions.KTypeGeneric) !*/
  @SuppressWarnings("unchecked")
  /*! #end !*/
  @Test
  public void testClone() {
    addFromArray(this.set, this.key1, this.key2, this.key3, this.keyE);

    final KTypeSet<KType> cloned = getClone(this.set);
    cloned.removeAll(this.key1);

    TestUtils.assertSortedListEquals(
        this.set.toArray(), this.keyE, this.key1, this.key2, this.key3);
    TestUtils.assertSortedListEquals(cloned.toArray(), this.keyE, this.key2, this.key3);
  }