ReceiveTransactionPresenter extends BasePresenter<ReceiveTransationContract.View> implements ReceiveTransationContract.Presenter { @Override public void copy() { if (walletEntity == null) { return; } String text = walletEntity.getPrefixAddress(); CommonUtil.copyTextToClipboard(getContext(), text); }  Wallet getWalletEntity(); void setWalletEntity(Wallet walletEntity); Bitmap getmQRCodeBitmap(); void setmQRCodeBitmap(Bitmap mQRCodeBitmap); @Override void loadData(); @Override void shareView(); @Override void copy();  }
@Test public void copy(){ Wallet wallet = new Wallet(); wallet.setUuid("9eed1da8-58e9-4b10-8bea-2bfdd1cac433"); wallet.setAvatar("avatar_3"); wallet.setAddress("0x0d395e21b23f8d920f8556cbf573af9ba2ad1a59"); wallet.setChainId("101"); wallet.setName("Ella"); wallet.setKeystorePath("UTC--2020-06-28T06-36-42.751--b1ca4a13ee33ed68d097223f186f65864ecdb98c9b35c664566f096761649aa7d9c9c2bc317785a5c2580b305803e5f29aafce422e49579792623575215675e7.json"); Bech32Address bech32Address = new Bech32Address("lat1p5u4ugdj87xeyru92m9l2ua0nw326xjekflsf8","lax1p5u4ugdj87xeyru92m9l2ua0nw326xjeevdl8g"); wallet.setBech32Address(bech32Address); presenter.setWalletEntity(wallet); }