### Question:
ToByteNullableImpl implements NullableExpression<T, ToByte<T>>, ToByteNullable<T> { @Override public boolean equals(Object o) { if (this == o) return true; else if (!(o instanceof NullableExpression)) return false; final NullableExpression<?, ?> that = (NullableExpression<?, ?>) o; return Objects.equals(original, that.inner()) && Objects.equals(isNull, that.isNullPredicate()); } ToByteNullableImpl(ToByte<T> original, Predicate<T> isNull); @Override ToByte<T> inner(); @Override Predicate<T> isNullPredicate(); @Override Byte apply(T t); @Override byte applyAsByte(T t); @Override ToByte<T> orThrow(); @Override ToByte<T> orElseGet(ToByte<T> getter); @Override ToByte<T> orElse(Byte value); @Override ToDoubleNullable<T> mapToDoubleIfPresent(ByteToDoubleFunction mapper); @Override ToByteNullable<T> mapIfPresent(ByteUnaryOperator mapper); @Override long hash(T object); @Override int compare(T first, T second); @Override boolean isNull(T object); @Override boolean isNotNull(T object); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test void testEquals() { final ToByteNullable<String> copy = instance; assertTrue(instance.equals(copy)); assertFalse(instance.equals(null)); final ToByteNullable<String> another = new ToByteNullableImpl<>( instance.inner(), instance.isNullPredicate() ); final ToByteNullable<String> originalSame = new ToByteNullableImpl<>( instance.inner(), Objects::isNull ); final ToByteNullable<String> isNullSame = new ToByteNullableImpl<>( string -> string.getBytes()[0], instance.isNullPredicate() ); assertTrue(instance.equals(another)); assertFalse(instance.equals(originalSame)); assertFalse(instance.equals(isNullSame)); }