@Test
public void resumeUpload_noMatchingUploadId_shouldThrowIllegalArgumentException() {

    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Could not find existing upload with ID doesNotExist");
    ArrayList<MultipartUpload> existingUploads = new ArrayList<>();
    existingUploads.add(MultipartUpload.builder().uploadId("foobar").build());
    ListMultipartUploadsResponse listResponse1 =
            ListMultipartUploadsResponse.builder()
                    .opcNextPage("nextPage")
                    .items(existingUploads)
                    .build();
    ListMultipartUploadsResponse listResponse2 =
            ListMultipartUploadsResponse.builder()
                    .items(new ArrayList<MultipartUpload>())
                    .build();
    when(service.listMultipartUploads(any(ListMultipartUploadsRequest.class)))
            .thenReturn(listResponse1)
            .thenReturn(listResponse2);
    assembler.resumeRequest("doesNotExist");
}