@Test(dataProvider = "stubOrderConfiguration")
public void shouldCallProperUrlForStubConfigurationChangeOrderRequest(StubConfigOrder order, String direction) {

    ArgumentCaptor<String> url = ArgumentCaptor.forClass(String.class);
    stubConfiguration.setStubConfigOrder(GROUP_NAME, order);
    verify(client).sendSetterRequest(url.capture());
    assertTrue(url.getValue().startsWith("http://host:1/config/admin/stub/changeorder?"));
    assertTrue(url.getValue().contains("groupname=testGroup1"));
    assertTrue(url.getValue().contains("direction=" + direction));
    verify(client, never()).sendGetterRequest(anyString());
}