awaitility-proxy/src/main/java/org/awaitility/proxy/AwaitilityClassProxy.java
@SuppressWarnings("unchecked")
    public static <S> S to(S object) {
        return (S) MethodCallRecorder.createProxy(object);
    }
@SuppressWarnings("unchecked")
    public static <S> S to(S object) {
        return (S) MethodCallRecorder.createProxy(object);
    }
Await until a specific method invocation returns something. E.g.
<p>
<pre>
await().until(callTo(service).getCount(), greaterThan(2));
</pre>
<p>
Here we tell Awaitility to wait until the <code>service.getCount()</code>
method returns a value that is greater than 2.

@param <S>    The type of the service.
@param object the object that contains the method of interest.
@return A proxy of the service