public void testGetReaderMIMETypes() { Set<String> expectedMIMETypes = new HashSet<String>( Arrays.asList(new String[] {"image/gif", "image/x-png", "image/png", "image/jpeg"})); Set<String> actualMIMETypes = new HashSet<String>(Arrays.asList(ImageIO.getReaderMIMETypes())); assertTrue(actualMIMETypes.containsAll(expectedMIMETypes)); }