Object obj = context.getBean("ioInitializer");
Assert.assertNotNull(obj);
Assert.assertTrue(obj instanceof ImageIOInitializer);
// Ensure that the excluded spis are present
ImageIOInitializer init = (ImageIOInitializer) obj;
List<String> excluded = init.getExcludedSpis();
Assert.assertNotNull(excluded);
Assert.assertTrue(excluded.size() > 0);
// Ensure that a decoder is present
Object obj2 = context.getBean("TIFFDecoder");