### Question:
PdfToSingleTiffParameters extends AbstractPdfToSingleImageParameters implements PdfToTiffParameters { @Override public boolean equals(Object other) { if (!(other instanceof PdfToSingleTiffParameters)) { return false; } PdfToSingleTiffParameters parameter = (PdfToSingleTiffParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(compressionType, parameter.getCompressionType()).isEquals(); } PdfToSingleTiffParameters(ImageColorType outputImageColorType); @Override ImageType getOutputImageType(); @Override TiffCompressionType getCompressionType(); void setCompressionType(TiffCompressionType compressionType); @Override int hashCode(); @Override boolean equals(Object other);  }### Answer:
@Test public void testEquals() { PdfToSingleTiffParameters eq1 = new PdfToSingleTiffParameters(ImageColorType.GRAY_SCALE); PdfToSingleTiffParameters eq2 = new PdfToSingleTiffParameters(ImageColorType.GRAY_SCALE); PdfToSingleTiffParameters eq3 = new PdfToSingleTiffParameters(ImageColorType.GRAY_SCALE); PdfToSingleTiffParameters diff = new PdfToSingleTiffParameters(ImageColorType.BLACK_AND_WHITE); diff.setCompressionType(TiffCompressionType.JPEG_TTN2); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }