### Question:
MimeType { public static String getMimeTypeOfFile(final String fileName) { return getMimeTypeOfFile(fileName, "text/plain"); }  static String get(String fileExtension, final String defaultValue); static String getMimeTypeOfFile(final String fileName); static String getMimeTypeOfFile(final String fileName, final String defaultValue);  }### Answer:
@Test public void testGetMimeTypeOfFile() { assertEquals("application/javascript", MimeType.getMimeTypeOfFile("qq.JS")); assertEquals("text/html", MimeType.getMimeTypeOfFile("a.b.c.htm")); assertEquals("text/plain", MimeType.getMimeTypeOfFile("xxxx")); }