public void testInputStreamDataSource() {
try {
InputStream inputStream = getClass().getResourceAsStream( "/test/xml/query_without_connection.xaction" ); //$NON-NLS-1$"test/xml/departments.rule.xaction"));
String name = "mystream"; //$NON-NLS-1$
InputStreamDataSource is = new InputStreamDataSource( name, inputStream );
Assert.assertEquals( inputStream, is.getInputStream() );
Assert.assertEquals( name, is.getName() );
} catch ( Exception e ) {
e.printStackTrace();
}
}