code: public void addAttachment(final String name, final String type,
                                final String fileExtension, final InputStream stream) {
          writeAttachment(prepareAttachment(name, type, fileExtension), stream);
      }
docs: Adds attachment to current running test or step.
  
  @param name          the name of attachment
  @param type          the content type of attachment
  @param fileExtension the attachment file extension
  @param stream        attachment content