Mockito.when(callsets.search(new SearchCallSetsRequest()
.setVariantSetIds(Lists.newArrayList("dataset"))
.setName("c2")))
.thenReturn(callsetSearch);
Mockito.when(callsetSearch.execute()).thenReturn(
new SearchCallSetsResponse().setCallSets(Lists.newArrayList(new CallSet().setId("id1"))),
new SearchCallSetsResponse() /* No callset results for c2 */);
Mockito.when(variants.search(new SearchVariantsRequest()
.setVariantSetIds(Lists.newArrayList("dataset"))
.setReferenceName("chr1")
.setStart(1L)