@Test
public void shouldCallTheProperStubConfigurationUploadUrlWithTheGivenStringResource() {

    ArgumentCaptor<String> url = ArgumentCaptor.forClass(String.class);
    ArgumentCaptor<String> resource = ArgumentCaptor.forClass(String.class);
    given(wilmaStub.toString()).willReturn(FILENAME);
    fileUpload.uploadStubConfiguration(wilmaStub);
    verify(client).uploadString(url.capture(), resource.capture());
    assertEquals(url.getValue(), STUB_CONFIGURATION_UPLOAD_URL_FOR_STRING);
    assertEquals(resource.getValue(), FILENAME);
}