OperationsRequestBuilder extends RequestBuilder { public OperationsRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "operations"); return this; } OperationsRequestBuilder(OkHttpClient httpClient, URI serverURI); OperationResponse operation(URI uri); OperationResponse operation(long operationId); OperationsRequestBuilder forAccount(KeyPair account); OperationsRequestBuilder forLedger(long ledgerSeq); OperationsRequestBuilder forTransaction(String transactionId); static Page<OperationResponse> execute(OkHttpClient httpClient, URI uri); Page<OperationResponse> execute(); @Override OperationsRequestBuilder cursor(String token); @Override OperationsRequestBuilder limit(int number); @Override OperationsRequestBuilder order(Order direction); @Override ServerSentEvent stream(EventListener<ListenerType> listener);  }
@Test public void testForAccount() { Server server = new Server("https: URI uri = server.operations() .forAccount(KeyPair.fromAccountId("GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H")) .limit(200) .order(RequestBuilder.Order.DESC) .buildUri(); assertEquals("https: }