command.readGroupSetIds = Lists.newArrayList("r1", "r2");
Mockito.when(readsets.get("r1")).thenReturn(readsetGet);
Mockito.when(readsets.get("r2")).thenReturn(readsetGet);
Mockito.when(readsetGet.execute()).thenReturn(
new ReadGroupSet().setName("name1"),
new ReadGroupSet().setName("name2"));
command.handleRequest(genomics);
String output = outContent.toString();
assertTrue(output, output.contains("name1"));