How do I convert string into InputStream?

Here you’ll find how to convert string into InputStream object using ByteArrayInputStream class.