@Test
public void shouldReturnTrueForDropAllStubConfigIfTheGivenJSONIsCorrect() {

    when(client.sendGetterRequest(STUB_STATUS_URL)).thenReturn(Optional.<String>of(validNotEmptyJson()));
    when(client.sendSetterRequest(DROP_STUB_URL1)).thenReturn(true);
    when(client.sendSetterRequest(DROP_STUB_URL2)).thenReturn(true);
    ArgumentCaptor<String> url = ArgumentCaptor.forClass(String.class);
    boolean result = stubConfiguration.dropAllStubConfig();
    assertTrue(result);
    verify(client, times(2)).sendSetterRequest(url.capture());
    assertEquals(url.getAllValues().get(0), DROP_STUB_URL1);
    assertEquals(url.getAllValues().get(1), DROP_STUB_URL2);
}