### Question:
VotingUtils { public static TransactionReceipt vote(String contractAddress, IsoDep tag, String publicKey, String from, BigInteger gasPrice, BigInteger gasLimit, Activity activity, String url) throws Exception { Voting contract = prepareWriteVotingContract(contractAddress, tag, publicKey, from, gasPrice, gasLimit, activity, url); return contract.castVote().send(); }  static TransactionReceipt vote(String contractAddress, IsoDep tag, String publicKey, String from,
                                          BigInteger gasPrice, BigInteger gasLimit, Activity activity, String url); static StaticArray4<Address> whitelistedSenderAddresses(String contractAddress, String from,
                                                                   BigInteger gasPrice, BigInteger gasLimit, String url);  }### Answer:
@Test @Ignore public void testVote() throws Exception { PowerMockito.mockStatic(NfcUtils.class); when(NfcUtils.generateSignature(any(), anyInt(), any(), any())).thenAnswer( (Answer) invocation -> { Object[] args = invocation.getArguments(); return TransactionSigner.signTransaction((byte[]) args[2]); }); final TransactionReceipt transactionReceipt = VotingUtils.vote( CONTRACT_ADDRESS, isoDep, Numeric.toHexStringNoPrefixZeroPadded(TransactionSigner.credentials.getEcKeyPair().getPublicKey(), 128), TransactionSigner.credentials.getAddress(), GAS_PRICE, GAS_LIMIT, null, ROPSTEN_URI); System.out.println(transactionReceipt.getTransactionHash()); assertNotNull(transactionReceipt.getTransactionHash()); assertEquals("0x1", transactionReceipt.getStatus()); }