/** * Create a virtual instance of the given type that delegates to the given instance. * * @param <T> the type of the object being virtualized * @param type the class of the type being virtualized * @param delegate the instance calls are delegated to * @return a virtual instance */ default <T> T createVirtualSut(Class<? extends T> type, T delegate) { return createVirtual(type, delegate); }