public static boolean doesFileEqualStream(File expectedFile, InputStream inputStream) throws IOException {
        InputStream expectedInputStream = new FileInputStream(expectedFile);
        return doesStreamEqualStream(expectedInputStream, inputStream);
    }
Returns true if, and only if, the contents in the specified file are exactly equal to the
contents read from the specified input stream. The input stream will be closed at the end of
this method.

@param expectedFile
           The file containing the expected contents.
@param inputStream
           The stream that will be read, compared to the expected file contents, and finally
           closed.
@throws IOException
            If any problems are encountered comparing the file and stream.
aws-java-sdk-test-utils/src/main/java/com/amazonaws/test/util/SdkAsserts.java