DataSourceHelper { public static List<String> validateMethodAnnotations( Class<? extends IDataSource> ds) { List<String> validationMessages = new ArrayList<String>(); for (Method m : ds.getMethods()) { validateMethodAnnotation(m, validationMessages); } return validationMessages; } 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 testValidateMethodAnnotationsWithNoDescriptionWrongNameWrongParameterList() throws Exception { List<String> messages = DataSourceHelper .validateMethodAnnotations(MethodAnnotationsWithNoDescriptionWrongNameWrongParameterList.class); assertEquals(4, messages.size()); }