### Question:
FrequencyMeasurement extends BasicMeasurement { @Override public FrequencyMeasurement clone() { return new FrequencyMeasurement(d_categories, d_frequencies); } private  FrequencyMeasurement();  FrequencyMeasurement(PopulationCharacteristic cv);  FrequencyMeasurement(List<String> categories, Map<String, Integer> map); void setFrequency(String category, Integer freq); Integer getFrequency(String category); String[] getCategories(); void add(FrequencyMeasurement other); boolean isOfType(VariableType type); @Override Set<Entity> getDependencies(); @Override String toString(); @Override FrequencyMeasurement clone(); @Override boolean equals(Object o); @Override int hashCode(); static final String PROPERTY_FREQUENCIES; }### Answer:
@Test public void testClone() { d_meas.setFrequency(getCat(d_cv, 0), 25); d_meas.setFrequency(getCat(d_cv, 1), 20); assertEquals(d_meas, d_meas.clone()); assertFalse(d_meas == d_meas.clone()); }