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