ContractInvocationHandler implements InvocationHandler, ClientPrepareable, SignerPreparable { @Override public void prepareSigner(final Signer signer) { assertNotNull(signer, "Signer must not null"); logger.trace("Prepare signer: {}", signer); this.signerCabinet.set(signer); }  @Override void prepareClient(final AergoClient aergoClient); @Override void prepareSigner(final Signer signer); @Override Object invoke(final Object proxy, final Method method, final Object[] args);  }
@Test public void testPrepareSigner() { final ContractInvocationHandler invocationHandler = new ContractInvocationHandler( contractAddress, mock( TxRequester.class)); final Signer signer = new AergoKeyGenerator().create(); invocationHandler.prepareSigner(signer); }