### Question:
Contract extends ManagedTransaction { protected TransactionReceipt executeTransaction( Function function) throws IOException, TransactionException { return executeTransaction(function, BigInteger.ZERO); } protected  Contract(String contractBinary, String contractAddress, Web3j web3j, TransactionManager transactionManager, GasProvider gasProvider, long chainId); protected  Contract(String contractBinary, String contractAddress, Web3j web3j, Credentials credentials, GasProvider gasProvider, long chainId); void setContractAddress(String contractAddress); String getContractAddress(); void setTransactionReceipt(TransactionReceipt transactionReceipt); String getContractBinary(); void setGasProvider(GasProvider gasProvider); boolean isValid(); Optional<TransactionReceipt> getTransactionReceipt(); void setDefaultBlockParameter(DefaultBlockParameter defaultBlockParameter); static RemoteCall<T> deployRemoteCall(Class<T> type, Web3j web3j, Credentials credentials,
            GasProvider contractGasProvider, String binary, String encodedConstructor, BigInteger value, long chainId); static RemoteCall<T> deployRemoteCall(Class<T> type, Web3j web3j, Credentials credentials,
            GasProvider contractGasProvider, String binary, String encodedConstructor, long chainId); static RemoteCall<T> deployRemoteCall(Class<T> type, Web3j web3j, TransactionManager transactionManager,
            GasProvider contractGasProvider, String binary, String encodedConstructor, BigInteger value, long chainId); static RemoteCall<T> deployRemoteCall(Class<T> type, Web3j web3j, TransactionManager transactionManager,
            GasProvider contractGasProvider, String binary, String encodedConstructor, long chainId); static EventValues staticExtractEventParameters(
            Event event, Log log, long chainId); final void setDeployedAddress(String networkId, String address); final String getDeployedAddress(String networkId); static final BigInteger GAS_LIMIT; static final String FUNC_DEPLOY; }### Answer:
@Test public void testStaticGasProvider() throws IOException, TransactionException { ContractGasProvider gasProvider = new ContractGasProvider(BigInteger.TEN, BigInteger.ONE); TransactionManager txManager = mock(TransactionManager.class); when(txManager.executeTransaction(any(), any(), any(), any(), any())) .thenReturn(new TransactionReceipt()); contract = new TestContract(ADDRESS, web3j, txManager, gasProvider, NetworkParameters.MainNetParams.getChainId()); Function func = new Function("test", Arrays.<Type>asList(), Collections.<TypeReference<?>>emptyList()); contract.executeTransaction(func); verify(txManager).executeTransaction(eq(BigInteger.TEN), eq(BigInteger.ONE), any(), any(), any()); }