BitcoinCoreBalanceResponse { public BigDecimal getAmount() { return amount; }  BigDecimal getAmount(); void setResult(BigDecimal value); void setError(String value);  }
@Test public void testUnmarshal() throws IOException { InputStream is = getClass().getResourceAsStream("/account/example-getbalance.json"); ObjectMapper mapper = new ObjectMapper(); BitcoinCoreBalanceResponse rawBalance = mapper.readValue(is, BitcoinCoreBalanceResponse.class); assertThat(rawBalance.getAmount()).isEqualTo(new BigDecimal("68480.47579046")); }