Set<Class<TypeConverter>> impls = ResolverUtil.getImplementations(TypeConverter.class);
ResolverUtil<TypeConverter> resolver = new ResolverUtil<TypeConverter>(); resolver.loadImplementationsFromContextClassloader(TypeConverter.class); Set<Class<? extends TypeConverter>> impls = resolver.getClasses();
    public void testSimpleFind() throws Exception {        // Because the tests package depends on stripes, it's safe to assume that        // there will be some TypeConverter subclasses in the classpath        Set<Class<TypeConverter>> impls = ResolverUtil.getImplementations(TypeConverter.class);        // Check on a few random converters        Assert.assertTrue(impls.contains(BooleanTypeConverter.class),                          "BooleanTypeConverter went missing.");        Assert.assertTrue(impls.contains(DateTypeConverter.class),                          "DateTypeConverter went missing.");        Assert.assertTrue(impls.contains(BooleanTypeConverter.class),                          "ShortTypeConverter went missing.");        Assert.assertTrue(impls.size() >= 10,                          "Did not find all the built in TypeConverters.");    }