assertTrue("Equal objects should return equal hashcodes",controlEqHash == testHash);
}
public void testContrastEnhancementDuplication() throws Exception {
ContrastEnhancement ce = sf.createContrastEnhancement();
ce.setGammaValue(sb.literalExpression(0.5));
ce.setMethod(ContrastMethod.HISTOGRAM);
ce.setHistogram();
ce.accept(visitor);
ContrastEnhancement ce2 = (ContrastEnhancement) visitor.getCopy();
assertEquals("Gamma value incorrest after duplication", ((Literal)ce.getGammaValue()).getValue(), ((Literal)ce2.getGammaValue()).getValue());
assertEquals("ContrastMethod must be equal after duplication ", ce.getMethod(), ce2.getMethod());
assertEquals("Contrast Type must be equal after duplication ", ((Literal)ce.getType()).getValue(), ((Literal)ce2.getType()).getValue());
}