public void testException() throws Exception
{
NegativeArgumentException value = new NegativeArgumentException(-10);
ORB foreignorb = ORB.init(new String[]{}, TestUtils.newForeignORBProperties());
OutputStream out = (OutputStream) foreignorb.create_output_stream();
out.write_value(value);
byte []result;
if (CommonSetup.isIBM)
{
result = (byte[])invoke("com.ibm.rmi.iiop.CDROutputStream", out, "toByteArray", new Class<?>[] {}, new Object[] {});