RangePartition extends PredicateValue { @Override public RangePartition clone() throws CloneNotSupportedException { return (RangePartition)super.clone(); } RangePartition(String label);  RangePartition(String key, long fromInclusive, long toInclusive, boolean isNeg); String getLabel(); @Override RangePartition clone(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void requireThatCloneIsImplemented() throws CloneNotSupportedException { RangePartition node1 = new RangePartition("foo=300-399"); RangePartition node2 = node1.clone(); assertEquals(node1, node2); assertNotSame(node1, node2); }