assertThat(list1).hasSize(1);
CompleteBean foundPaul = list1.get(0);
Factory factory1 = (Factory) foundPaul;
@SuppressWarnings("unchecked")
ProxyInterceptor<CompleteBean> interceptor1 = (ProxyInterceptor<CompleteBean>) factory1.getCallback(0);
CompleteBean realPaul = (CompleteBean) interceptor1.getTarget();
assertThat(realPaul.getLabel()).isNull();
assertThat(realPaul.getWelcomeTweet()).isNull();
assertThat(realPaul.getName()).isEqualTo(paul.getName());
assertThat(realPaul.getAge()).isEqualTo(paul.getAge());
assertThat(realPaul.getFriends()).containsAll(paul.getFriends());
assertThat(realPaul.getFollowers()).containsAll(paul.getFollowers());
assertThat(realPaul.getPreferences().get(1)).isEqualTo("FR");
assertThat(realPaul.getPreferences().get(2)).isEqualTo("Paris");
assertThat(realPaul.getPreferences().get(3)).isEqualTo("75014");
Factory factory2 = (Factory) foundJohn;
@SuppressWarnings("unchecked")
ProxyInterceptor<CompleteBean> interceptor2 = (ProxyInterceptor<CompleteBean>) factory2.getCallback(0);
CompleteBean realJohn = (CompleteBean) interceptor2.getTarget();
assertThat(realJohn.getLabel()).isNull();
assertThat(realJohn.getWelcomeTweet()).isNull();