public static String getByFilename(String filename) {
    String extension = FilenameUtils.getExtension(filename);
    String mime = null;
    if (!isNullOrEmpty(extension)) {
      mime = MAP.get(extension.toLowerCase(Locale.ENGLISH));
    }
    return mime != null ? mime : DEFAULT;
  }
@Test
  public void getByFilename() {
    assertThat(MediaTypes.getByFilename("static/sqale/sqale.css")).isEqualTo("text/css");
    assertThat(MediaTypes.getByFilename("sqale.css")).isEqualTo("text/css");
  }