### Question:
FloatCondition extends BasicCondition<Float, FloatCondition> implements FloatingPointChecks<Float, FloatCondition> { @Override public FloatCondition isNearWithTolerance(Float floatingPointNumber, Float tolerance) { require(this.subject).isNotNull(); require(floatingPointNumber).isNotNull(); require(tolerance).isNotNull(); if (!(Math.abs(this.subject - floatingPointNumber) < tolerance)) { DbcAssertionError.throwNew(new IllegalArgumentException("Expected float <" + this.subject + "> to be near <" + floatingPointNumber + "> with epsilon <" + tolerance + ">"), this.message); } return result(); } FloatCondition(Float subject); @Override FloatCondition isGreaterThan(Float number); @Override FloatCondition isGreaterThanOrEqual(Float number); @Override FloatCondition isLessThan(Float number); @Override FloatCondition isLessThanOrEqual(Float number); @Override FloatCondition isNear(Float floatingPointNumber); @Override FloatCondition isNearWithTolerance(Float floatingPointNumber, Float tolerance); @Override FloatCondition isNearZero(); @Override FloatCondition isNearZeroWithTolerance(Float tolerance); @Deprecated @Override FloatCondition isEqualTo(Float toCompare);  }### Answer:
@Test public void isNearCustomTolerance() throws Exception { FloatCondition condition = new FloatCondition(2.0F); condition.isNearWithTolerance(3F, 2.5F); assertThatThrownBy(() -> condition.isNearWithTolerance(1F, .5F)) .isInstanceOf(DbcAssertionError.class) .hasCauseInstanceOf(IllegalArgumentException.class); }