@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    MailContainerResource that = (MailContainerResource) o;
    return Objects.equals(getFolders(), that.getFolders()) &&
            Objects.equals(getMessages(), that.getMessages());
  }
A Wrapper for all the possible objects that can be returned by a mail exporter.
portability-types-common/src/main/java/org/datatransferproject/types/common/models/mail/MailContainerResource.java