code: public static Attachment fromText( String content, MediaType mediaType ) {
          if( mediaType.isBinary() ) {
              throw new IllegalArgumentException( "MediaType must not be binary" );
          }
          return new Attachment( content, mediaType );
      }
docs: Equivalent to {@link com.tngtech.jgiven.attachment.Attachment#Attachment(String, MediaType)}
  @throws java.lang.IllegalArgumentException if mediaType is binary