@Test
public void fileToInputStream() throws IOException {

    File file = File.createTempFile("StreamUtilsTest", null);
    file.deleteOnExit();
    try (InputStream stream = StreamUtils.toInputStream(file)) {
        assertNotNull(stream);
    }
    file.delete();
}