DataSourceHelper { static InputStream getInputStreamFromInlineData(String data) { return new ByteArrayInputStream(data.getBytes()); } 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 testGetInputStreamFromInlineData() throws Exception { String data = "ABC"; InputStream is = DataSourceHelper.getInputStreamFromInlineData(data); BufferedReader r = new BufferedReader(new InputStreamReader(is)); String actual = r.readLine(); assertEquals(data, actual); }