### Question:
DefaultKeyedValueDataset extends AbstractDataset implements KeyedValueDataset, Serializable { @Override public Object clone() throws CloneNotSupportedException { DefaultKeyedValueDataset clone = (DefaultKeyedValueDataset) super.clone(); return clone; } DefaultKeyedValueDataset();  DefaultKeyedValueDataset(Comparable key, Number value);  DefaultKeyedValueDataset(KeyedValue data); @Override Comparable getKey(); @Override Number getValue(); void updateValue(Number value); void setValue(Comparable key, Number value); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }### Answer:
@Test public void testCloning() throws CloneNotSupportedException { DefaultKeyedValueDataset d1 = new DefaultKeyedValueDataset("Test", 45.5); DefaultKeyedValueDataset d2 = (DefaultKeyedValueDataset) d1.clone(); assertNotSame(d1, d2); assertSame(d1.getClass(), d2.getClass()); assertEquals(d1, d2); }