Added test and more accurate detection of MIME type in the command-line application.


git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK7@1515754 13f79535-47bb-0310-9956-ffa450edef68