### Question:
CorbaObjectReader { public Boolean readBoolean() throws CorbaBindingException { try { return stream.read_boolean(); } catch (org.omg.CORBA.MARSHAL ex) { LOG.log(Level.SEVERE, "CorbaObjectReader: could not read boolean"); throw new CorbaBindingException("CorbaObjectReader: readBoolean MARSHAL exception", ex); } } CorbaObjectReader(InputStream inStream); void read(CorbaObjectHandler obj); Boolean readBoolean(); Character readChar(); Character readWChar(); Byte readOctet(); Short readShort(); Integer readUShort(); Integer readLong(); long readULong(); Long readLongLong(); BigInteger readULongLong(); Float readFloat(); Double readDouble(); String readString(); String readWString(); Any readAny(); void readEnum(CorbaObjectHandler obj); void readStruct(CorbaStructHandler structObj); void readException(CorbaExceptionHandler exceptObj); void readFixed(CorbaFixedHandler fixedHandler); void readEnumDiscriminator(CorbaUnionHandler unionHandler, CorbaEnumHandler disc); void readUnion(CorbaUnionHandler unionHandler); void readArray(CorbaArrayHandler arrayObj); void readSequence(CorbaObjectHandler obj); void readObjectReference(CorbaObjectReferenceHandler objRefObj);  }### Answer:
@Test public void testReadBoolean() { OutputStream oStream = orb.create_output_stream(); oStream.write_boolean(true); InputStream iStream = oStream.create_input_stream(); CorbaObjectReader reader = new CorbaObjectReader(iStream); Boolean boolValue = reader.readBoolean(); assertTrue(boolValue.booleanValue()); }