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