@Override
          public @Nullable Object invoke(Object proxy, Method method, Object[] args) {
            if (method.getName().equals("asBinder")) {
              return new Binder();
            }
            return null;
          }
Simulates the view as being attached.
core/src/main/java/com/facebook/testing/screenshot/WindowAttachment.java