private void setUpSingleMessageResponse() throws IOException {
    messageListResponse = new ListMessagesResponse()
        .setMessages(Collections.singletonList(INITIAL_MESSAGE));
    when(messageListRequest.execute()).thenReturn(messageListResponse);
    when(get.execute()).thenReturn(FULL_MESSAGE);
  }
Sets up a response with a single message
extensions/data-transfer/portability-data-transfer-google/src/test/java/org/datatransferproject/datatransfer/google/mail/GoogleMailExporterTest.java