TikaResourceHelper { static List<URL> getCustomUrls() throws IOException { final ClassLoader cl = MimeTypes.class.getClassLoader(); return Collections.list(cl .getResources(CLASS_PREFIX + CUSTOM_MIMETYPES)); } private  TikaResourceHelper();  final static String TIKA_MIMETYPES; final static String CUSTOM_MIMETYPES; }
@SuppressWarnings("javadoc") @Test public final void testGetCustomUrls() throws IOException { List<URL> customUrls = TikaResourceHelper.getCustomUrls(); assertTrue("", customUrls.size() == 1); assertTrue("expecting custom mime types NOT:" + customUrls.get(0), customUrls.get(0) .getPath().contains(TikaResourceHelper.CUSTOM_MIMETYPES)); }