### Question:
InterledgerRustNodeClient { public RustNodeAccount createAccount(RustNodeAccount rustNodeAccount) throws IOException { return execute(requestBuilder() .url(baseUrl.newBuilder().addPathSegment("accounts").build()) .post(RequestBody.create(objectMapper.writeValueAsString(rustNodeAccount), JSON)) .build(), RustNodeAccount.class); } @Deprecated  InterledgerRustNodeClient(OkHttpClient okHttpClient, String authToken, String baseUrl);  InterledgerRustNodeClient(
    final OkHttpClient okHttpClient, final String authToken, final HttpUrl baseUrl
  ); RustNodeAccount createAccount(RustNodeAccount rustNodeAccount); BigDecimal getBalance(String accountName); static final MediaType JSON; }### Answer:
@Test public void createAccount() throws IOException, URISyntaxException { String testClient = "testClient"; String accountBody = "{\"ilp_address\":\"test.xpring-dev.rs1." + testClient + "\"," + "\"username\":\"" + testClient + "\"," + "\"asset_code\":\"XRP\"," + "\"asset_scale\":6," + "\"max_packet_amount\":10000000," + "\"min_balance\":-100000000," + "\"ilp_over_http_incoming_token\":\"passwordin\"," + "\"ilp_over_http_outgoing_token\":\"passwordout\"," + "\"http_endpoint\":\"https: + "\"btp_uri\":\"btp+ws: + "\"routing_relation\":\"Peer\"," + "\"round_trip_time\":500}"; stubFor(post(urlEqualTo("/accounts")) .withHeader("Authorization", equalTo("Bearer passwordin")) .willReturn(aResponse() .withStatus(200) .withBody(accountBody) )); client.createAccount(RustNodeAccount.builder() .ilpAddress(InterledgerAddress.of("test.xpring-dev.rs1").with(testClient)) .username(testClient) .assetCode("XRP") .assetScale(6) .minBalance(new BigInteger("-100000000")) .maxPacketAmount(new BigInteger("10000000")) .httpIncomingToken("passwordin") .httpOutgoingToken("passwordout") .httpEndpoint(new URI("https: .btpUri(new URI("btp+ws: .roundTripTime(new BigInteger("500")) .routingRelation(RustNodeAccount.RoutingRelation.PEER) .build() ); verify(postRequestedFor(urlMatching("/accounts")) .withRequestBody(equalTo(accountBody))); }