public void add(String pattern, MimeType type) throws MimeTypeException {
        this.add(pattern, false, type);
    }
@Test
    public void testExtension() throws MimeTypeException {
        MimeType doc = types.forName("application/vnd.ms-word");
        patterns.add("*.doc", doc);

        assertEquals(".doc", doc.getExtension());
    }