*/
public void testDefaultEncodingChar() throws Exception
{
byte[] codedText = {'a', 's', 'd', 'f', 'x', 'y', 'z', '*',
0, 0, 0, 5, 'C', 'A', 'F', 'E', 0};
CDRInputStream stream = new CDRInputStream( orb, codedText );
assertEquals( "char 1", 'a', stream.read_char() );
assertEquals( "char 2", 's', stream.read_char() );
assertEquals( "char 3", 'd', stream.read_char() );
assertEquals( "char 4", 'f', stream.read_char() );
char[] buffer = new char[4];
buffer[0] = 'w';
stream.read_char_array( buffer, 1, 3 );
assertEquals( "char array", "wxyz", new String( buffer ) );
assertEquals( "string value", "CAFE", stream.read_string() );
}