MergeParameters extends BaseMergeParameters<MergeInput> { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof MergeParameters)) { return false; } MergeParameters params = (MergeParameters) other; return new EqualsBuilder().appendSuper(super.equals(other)) .append(acroFormPolicy, params.getAcroFormPolicy()).append(blankPageIfOdd, params.isBlankPageIfOdd()) .append(outlinePolicy, params.getOutlinePolicy()).append(tocPolicy, params.getTableOfContentsPolicy()) .append(filenameFooter, params.isFilenameFooter()) .append(normalizePageSizes, params.isNormalizePageSizes()) .append(catalogPageLabelsPolicy, params.catalogPageLabelsPolicy) .append(firstInputCoverTitle, params.firstInputCoverTitle) .append(rotations, params.rotations) .isEquals(); }  boolean isBlankPageIfOdd(); void setBlankPageIfOdd(boolean blankPageIfOdd); AcroFormPolicy getAcroFormPolicy(); void setAcroFormPolicy(AcroFormPolicy acroFormPolicy); OutlinePolicy getOutlinePolicy(); void setOutlinePolicy(OutlinePolicy outlinePolicy); ToCPolicy getTableOfContentsPolicy(); void setTableOfContentsPolicy(ToCPolicy tocPolicy); boolean isFilenameFooter(); void setFilenameFooter(boolean filenameFooter); boolean isNormalizePageSizes(); void setNormalizePageSizes(boolean normalizePageSizes); CatalogPageLabelsPolicy getCatalogPageLabelsPolicy(); void setCatalogPageLabelsPolicy(CatalogPageLabelsPolicy catalogPageLabelsPolicy); boolean isFirstInputCoverTitle(); void setFirstInputCoverTitle(boolean firstInputCoverTitle); List<Rotation> getRotations(); void setRotations(List<Rotation> rotations); Rotation getRotation(int index); @Override int hashCode(); @Override boolean equals(Object other);  }
@Test public void testEquals() { MergeParameters eq1 = new MergeParameters(); MergeParameters eq2 = new MergeParameters(); MergeParameters eq3 = new MergeParameters(); MergeParameters diff = new MergeParameters(); diff.setBlankPageIfOdd(true); diff.setAcroFormPolicy(AcroFormPolicy.MERGE); TestUtils.testEqualsAndHashCodes(eq1, eq2, eq3, diff); }