Validation of outputStream Query