@Test
public void testBestMatch() {

    System.out.println("bestMatch");
    
    Collection<String> acceps = new ArrayList<String>();
    acceps.add("text/html");
    acceps.add("text/*;q=0.9");
    acceps.add("image/jpeg;q=0.9");
    acceps.add("image/png;q=0.9");
    acceps.add("image/*;q=0.9");
    acceps.add("*/*;q=0.8");
   
    String fileContentType = "text/plain";
    String expResult = "text/*;q=0.9";
    String result = MMTypeTools.bestMatch(acceps, fileContentType);
    assertEquals(expResult, result);
}