### Question:
ModulePluginUtils { @SuppressWarnings("unchecked") public static <X> Enumeration<X> getDrivers(Class<X> clazz) { Enumeration<ModulePluginDriverInfo> infos = getDriverInfos(); Vector<X> drivers = new Vector<X>(); while (infos.hasMoreElements()) { ModulePluginDriverInfo driverInfo = infos.nextElement(); if (clazz != null && clazz.isAssignableFrom(driverInfo.getDriver().getClass())) { drivers.add((X) driverInfo.driver); } } return drivers.elements(); }  static void cacheModulePluginConfig(String realConfigDirectory); static Enumeration<ModulePluginDriverInfo> getDriverInfos(); static Enumeration<ModulePluginDriverInfo> getDriverInfos(Class<? extends ModulePluginDriver> clazz); static ModulePluginDriverInfo getDriverInfo(String driverClassName); @SuppressWarnings("unchecked") static Enumeration<X> getDrivers(Class<X> clazz); static final String DELIMITERS; }### Answer:
@Test public void testGetDrivers() { Enumeration<ModulePluginDriver> drivers = ModulePluginUtils.getDrivers(ModulePluginDriver.class); Assert.assertTrue("获取指定接口" + ModulePluginDriver.class + "实现类失败！", drivers.hasMoreElements()); }