@Test
public void testSomeMethod() {

    IIORegistry iioRegistry = IIORegistry.getDefaultInstance();
    
    DeregisterServiceProviderServletListener l = new DeregisterServiceProviderServletListener();
    
    List<ImageInputStreamSpi> iBefore = convertToList(ServiceRegistry.lookupProviders(ImageInputStreamSpi.class, getClass().getClassLoader()));
    List<ImageOutputStreamSpi> oBefore = convertToList(ServiceRegistry.lookupProviders(ImageOutputStreamSpi.class, getClass().getClassLoader()));
    
    List<ImageInputStreamSpi> iiBefore = convertToList(iioRegistry.getServiceProviders(ImageInputStreamSpi.class, false));
    List<ImageOutputStreamSpi> ooBefore = convertToList(iioRegistry.getServiceProviders(ImageOutputStreamSpi.class, false));
    
    l.contextDestroyed(null);
   
    List<ImageInputStreamSpi> iiAfter = convertToList(iioRegistry.getServiceProviders(ImageInputStreamSpi.class, false));
    List<ImageOutputStreamSpi> ooAfter = convertToList(iioRegistry.getServiceProviders(ImageOutputStreamSpi.class, false));
    
    List<ImageInputStreamSpi> iAfter = convertToList(ServiceRegistry.lookupProviders(ImageInputStreamSpi.class, getClass().getClassLoader()));
    List<ImageOutputStreamSpi> oAfter = convertToList(ServiceRegistry.lookupProviders(ImageOutputStreamSpi.class, getClass().getClassLoader()));
    
    
    
    
}