@Test
public void testCurrent() throws Exception
{
ORBMediator med1 =
(ORBMediator) orb.resolve_initial_references(ORBMediator.INITIAL_REFERENCE_ID);
Current curr1 = CurrentHelper.narrow(orb.resolve_initial_references("PICurrent"));
ORB orb2 = getAnotherORB(this.orbProps);
ORBMediator med2 =
(ORBMediator) orb2.resolve_initial_references(ORBMediator.INITIAL_REFERENCE_ID);
Current curr2 = CurrentHelper.narrow(orb2.resolve_initial_references("PICurrent"));
assertFalse ("ORBs should be different", orb.equals(orb2));
assertFalse ("Mediators object should be different!", med1.equals(med2));
assertFalse ("Currents should be different!", curr1.equals(curr2));
int slot1 = med1.getSlot();
Any any1 = orb.create_any();
String info1 = "information from Current 1";
any1.insert_string(info1);
curr1.set_slot(slot1, any1);
int slot2 = med2.getSlot();
Any anyFrom2 = curr2.get_slot(slot2);
if (anyFrom2.type().kind().value() != TCKind._tk_null)
{
String extractedFrom2 = anyFrom2.extract_string();
System.out.println ("### "+extractedFrom2 +" and " + info1);