RxViper { @SuppressWarnings("unchecked") static <T> NullObject<T> getProxy(T target) { return (NullObject<T>) Proxy.getInvocationHandler(target); } private  RxViper();   }
@Test public void shouldReturnNullObject() { final TestPresenter presenter = new TestPresenter(new TestViewCallbacksImpl()); final TestViewCallbacks proxyView = presenter.getView(); final NullObject<TestViewCallbacks> nullObject = RxViper.getProxy(proxyView); assertThat(Proxy.getInvocationHandler(proxyView)).isSameAs(nullObject); }