### Question:
TransactionalFcrepoClient extends FcrepoClient { @Override public FcrepoResponse executeRequest(URI uri, HttpRequestBase request) throws FcrepoOperationFailedException { URI requestUri = uri; if (hasTxId()) { if (needsRequestBodyRewrite(request)) { rewriteRequestBodyUris(request); } if (!uri.toString().contains("tx:")) { requestUri = rewriteUri(requestUri); request.setURI(requestUri); } FcrepoResponse resp = super.executeRequest(requestUri, request); if (!request.getMethod().equals("HEAD")) { return rewriteResponseBodyUris(resp); } } return super.executeRequest(requestUri, request); } protected  TransactionalFcrepoClient(String username, String password, String host,
                Boolean throwExceptionOnFailure, String baseUri); static TransactionalFcrepoClientBuilder client(String baseUri); @Override FcrepoResponse executeRequest(URI uri, HttpRequestBase request);  }### Answer:
@Test public void executeRequestWithTxTest() throws Exception { URI rescUri = URI.create(RESC_URI); assertFalse(rescUri.toString().contains("tx:")); assertNotEquals(rescUri.toString(), REQUEST_URI); try (FcrepoResponse response = txClient.executeRequest(rescUri, request)) { rescUri = response.getLocation(); } finally { tx.close(); } assertTrue(rescUri.toString().contains("tx:")); assertEquals(rescUri.toString(), REQUEST_URI); }