{
byte bytes[][] = new byte[1][];
XInputStream rIn = (XInputStream)UnoRuntime.queryInterface(XInputStream.class, rOut);
if(rIn.available() != 10)
System.err.println("wrong bytes available\n");
if(rIn.readBytes(bytes, 10) != 10)
System.err.println("wrong bytes read\n");