Mockito.when(references.bases()).thenReturn(referenceBases);
Mockito.when(referenceBases.list("refId")).thenReturn(referenceBasesList);
Mockito.when(referenceBasesList.setStart(1L)).thenReturn(referenceBasesList);
Mockito.when(referenceBasesList.setEnd(3L)).thenReturn(referenceBasesList);
Mockito.when(referenceBasesList.execute()).thenReturn(new ListBasesResponse()
.setSequence("abcd"));
command.handleRequest(genomics);
String output = outContent.toString();
assertTrue(output, output.contains("abcd"));