DifferentialExpression implements Expression { @Override public boolean equals(Object object) { if (this == object) { return true; } if ((null == object) || (getClass() != object.getClass())) { return false; } DifferentialExpression other = (DifferentialExpression) object; return Objects.equal(foldChange, other.foldChange) && Objects.equal(pValue, other.pValue); } DifferentialExpression(double pValue, double foldChange); double getPValue(); double getFoldChange(); boolean isRegulatedLike(Regulation regulation); @Override boolean equals(Object object); @Override int hashCode(); @Override double getLevel(); boolean isOverExpressed(); boolean isUnderExpressed(); double getAbsoluteFoldChange(); @Override JsonObject toJson(); @Override String toString();  }
@Test public void testEquals() { assertThat(subject.equals(new DifferentialExpression(P_VALUE, FOLD_CHANGE)), is(true)); }