//ReceivingImMsg_Handler ringh = new ReceivingImMsg_Handler();
//ReceivedImMsg_Handler rdh = new ReceivedImMsg_Handler();
DBusConnection conn = DBusConnection.getConnection(DBusConnection.SESSION);
PurpleInterface po = (PurpleInterface)conn.getRemoteObject("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject");
FileHandler fh = new FileHandler(po,conn, "agent_file_", ".tmp");
//conn.addSigHandler(im.pidgin.purple.PurpleInterface.FileSendStart.class, fh);
//conn.addSigHandler(im.pidgin.purple.PurpleInterface.FileSendComplete.class, fh);
byte[] orgArr = new byte[]{'c','d','w','h','d','l'};
String path = fh.packInFile(orgArr);
byte[] bar = fh.unpackFromFile(path);
for (int i=0;i<bar.length;i++)
{
assert(bar[i]==orgArr[i]);
}