### Question:
DoubleCondition extends BasicCondition<Double, DoubleCondition> implements FloatingPointChecks<Double, DoubleCondition> { @Override public DoubleCondition isNearZero() { require(this.subject).isNotNull(); if (!(Math.abs(this.subject) < DEFAULT_DOUBLE_EPSILON)) { DbcAssertionError.throwNew(new IllegalArgumentException("Expected double <" + this.subject + "> to be near zero with epsilon <" + DEFAULT_DOUBLE_EPSILON + ">"), this.message); } return result(); } DoubleCondition(Double subject); @Override DoubleCondition isGreaterThan(Double number); @Override DoubleCondition isGreaterThanOrEqual(Double number); @Override DoubleCondition isLessThan(Double number); @Override DoubleCondition isLessThanOrEqual(Double number); @Override DoubleCondition isNear(Double floatingPointNumber); @Override DoubleCondition isNearWithTolerance(Double floatingPointNumber, Double tolerance); @Override DoubleCondition isNearZero(); @Override DoubleCondition isNearZeroWithTolerance(Double tolerance); @Deprecated @Override DoubleCondition isEqualTo(Double toCompare);  }### Answer:
@Test public void isNearZero() throws Exception { DoubleCondition condition = new DoubleCondition(0.22E-16); condition.isNearZero(); DoubleCondition badCondition = new DoubleCondition(2D); assertThatThrownBy(badCondition::isNearZero) .isInstanceOf(DbcAssertionError.class) .hasCauseInstanceOf(IllegalArgumentException.class); }