@Test(dataProvider = "stubStatusConfiguration")
public void shouldCallProperUrlForStubConfigurationChangeStatusRequest(StubConfigStatus status, String nextStatusValue) {

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