@Test
public void createClientRequestCreatesRequestUsingUriProvidedByAction() throws IOException {

    // given
    BatchRequest request = createDefaultTestBatchRequest();
    String expectedUriPart = UUID.randomUUID().toString();
    when(request.getURI()).thenReturn(expectedUriPart);
    // when
    HttpClient client = createDefaultTestObject();
    HttpUriRequest httpRequest = client.createClientRequest(request);
    // then
    assertTrue(httpRequest.getRequestLine().getUri().contains(expectedUriPart));
}