### Question:
NeoToken extends Nep5Token { public BigInteger unclaimedGas(ScriptHash scriptHash, long blockHeight) throws IOException { ContractParameter accParam = ContractParameter.hash160(scriptHash); ContractParameter heightParam = ContractParameter.integer(BigInteger.valueOf(blockHeight)); return callFuncReturningInt(UNCLAIMED_GAS, accParam, heightParam); } NeoToken(Neow3j neow); @Override String getName(); @Override String getSymbol(); @Override BigInteger getTotalSupply(); @Override int getDecimals(); BigInteger unclaimedGas(ScriptHash scriptHash, long blockHeight); TransactionBuilder registerCandidate(ECPublicKey candidateKey); TransactionBuilder unregisterCandidate(ECPublicKey candidateKey); List<ECPublicKey> getValidators(); List<ECPublicKey> getCommittee(); Map<ECPublicKey, Integer> getCandidates(); List<ECPublicKey> getNextBlockValidators(); TransactionBuilder vote(ScriptHash voter, ECPublicKey... validators); final static int DECIMALS; final static String NAME; final static String SYMBOL; final static BigInteger TOTAL_SUPPLY; static final ScriptHash SCRIPT_HASH; static final String UNCLAIMED_GAS; static final String REGISTER_CANDIDATE; static final String UNREGISTER_CANDIDATE; static final String VOTE; static final String GET_CANDIDATES; static final String GET_VALIDATORS; static final String GET_COMMITTEE; static final String GET_NEXT_BLOCK_VALIDATORS; }### Answer:
@Test public void getUnclaimedGas() throws IOException { String responseBody = ContractTestHelper.loadFile( "/responses/invokefunction_unclaimedgas.json"); WireMock.stubFor(post(urlEqualTo("/")) .withRequestBody(new RegexPattern("" + ".*\"method\":\"invokefunction\"" + ".*\"params\":" + ".*\"de5f57d430d3dece511cf975a8d37848cb9e0525\"" + ".*\"unclaimedGas\"" + ".*\"f68f181731a47036a99f04dad90043a744edec0f\"" + ".*100.*" )) .willReturn(aResponse() .withStatus(200) .withBody(responseBody))); BigInteger result = new NeoToken(neow) .unclaimedGas(ScriptHash.fromAddress("AHE5cLhX5NjGB5R2PcdUvGudUoGUBDeHX4"), 100); assertThat(result, is(new BigInteger("60000000000"))); }