* @param interceptor
* method interceptor to intercept the target method invocation
* @return stub instance
*/
public static <T> T createStub(final Class<T> toStub, MethodInterceptor interceptor) {
ProxyFactory factory = new ProxyFactory();
return factory.createProxyInstance(toStub, interceptor);
}