public void resolveOnGet(T val) {
        resolveOnGet = true;
        resolveOnGetResult = val;
    }
Set a flag to resolve the future as soon as one of the get() methods has been called. Returns immediately.
@param val the value to return from the future
connect/runtime/src/test/java/org/apache/kafka/connect/util/TestFuture.java