DataSourceHelper { public static String getName(IDataSource ds) { DataSource annotation = ds.getClass().getAnnotation(DataSource.class); return annotation.name(); } private  DataSourceHelper(); static List<DataSourceConfigurationOption> getConfigurationOptionsFor(
			Class<? extends IDataSource> dataSource); static List<DataSourceConfigurationOption> getConfigurationOptionsFor(
			IDataSource dataSource); static boolean isValidConfigurationOption(IDataSource dataSource,
			String propertyName); static void setConfigurationOption(IDataSource dataSource,
			String name, String value); static List<String> validateDataSourceAnnotation(
			Class<? extends IDataSource> ds); static List<String> validateMethodAnnotations(
			Class<? extends IDataSource> ds); static String getName(IDataSource ds); static String getShortName(IDataSource ds);  }
@Test public void testGetName() { MyDataSource ds = new MyDataSource(); assertEquals("Test", DataSourceHelper.getName(ds)); assertEquals("test", DataSourceHelper.getShortName(ds)); }