FloatMismatch { public static ValueMismatch unexpectedValue(float expected, float actual, float newValue, int version) { checkNotNullOrEqual(expected, actual); return of(expected, actual, newValue, version); } private  FloatMismatch(); static ValueMismatch expectedZero(float actual, float newValue, int version); static ValueMismatch expectedNonZero(float expected, float newValue, int version); static ValueMismatch unexpectedValue(float expected, float actual,
                                                float newValue, int version); static ValueMismatch of(float expected, float actual, float newValue, int version); static float unpackExpected(ValueMismatch mismatch); static float unpackActual(ValueMismatch mismatch); static float unpackNewValue(ValueMismatch mismatch);  }
@Test @DisplayName("not accept same expected and actual values") void notAcceptSameExpectedAndActual() { float value = 19.19f; assertThrows(IllegalArgumentException.class, () -> unexpectedValue(value, value, NEW_VALUE, VERSION)); }