Mockito.when(datasetList.execute()).thenReturn(new ListDatasetsResponse()
.setDatasets(Lists.newArrayList(
new Dataset().setId("id1").setName("name").setProjectNumber(1234L))));
// Readset summary
Mockito.when(readsets.search(new SearchReadGroupSetsRequest()
.setDatasetIds(Lists.newArrayList("id1")).setPageSize(100)))
.thenReturn(readsetSearch);
Mockito.when(readsetSearch.execute()).thenReturn(new SearchReadGroupSetsResponse()
.setReadGroupSets(Lists.newArrayList(new ReadGroupSet(), new ReadGroupSet())));