BitmapEncoderRegistry { public static Set<String> getSupportedMIMETypes() { final Set<String> mimes = new java.util.HashSet<String>(); for (final Entry entry : encoders) { mimes.addAll(Arrays.asList(entry.encoder.getSupportedMIMETypes())); } return mimes; } private  BitmapEncoderRegistry(); static void register(String classname, int priority); static boolean supports(BitmapEncoder encoder, String mime); static boolean supports(String mime); static BitmapEncoder getInstance(String mime); static Set<String> getSupportedMIMETypes();  }
@Test public void testGetSupportedMIMETypes() { System.out.println("getSupportedMIMETypes"); boolean expResult = true; Set<String> result = BitmapEncoderRegistry.getSupportedMIMETypes(); assertEquals(expResult, result.contains("image/jpeg")); assertEquals(!expResult, result.contains("image/jpg")); }