/*
   public static void doTests(DBus.Binding.Tests tests, DBus.Binding.SingleTests singletests)   {      Random r = new Random();      int i;      test(DBus.Binding.Tests.class, tests, "IdentityBool", false, false);       test(DBus.Binding.Tests.class, tests, "IdentityBool", true, true);             test(DBus.Binding.Tests.class, tests, "Invert", false, true);       test(DBus.Binding.Tests.class, tests, "Invert", true, false);             test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) 0, (byte) 0);       test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) 1, (byte) 1);       test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) -1, (byte) -1);       test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) Byte.MAX_VALUE, (byte) Byte.MAX_VALUE);       test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) Byte.MIN_VALUE, (byte) Byte.MIN_VALUE);       i = r.nextInt();      test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) i, (byte) i);             test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) 0, (short) 0);       test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) 1, (short) 1);       test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) -1, (short) -1);       test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) Short.MAX_VALUE, (short) Short.MAX_VALUE);       test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) Short.MIN_VALUE, (short) Short.MIN_VALUE);       i = r.nextInt();      test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) i, (short) i);             test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) 0, (int) 0);       test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) 1, (int) 1);       test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) -1, (int) -1);       test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) Integer.MAX_VALUE, (int) Integer.MAX_VALUE);       test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) Integer.MIN_VALUE, (int) Integer.MIN_VALUE);       i = r.nextInt();      test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) i, (int) i);             test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) 0, (long) 0);       test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) 1, (long) 1);       test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) -1, (long) -1);       test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) Long.MAX_VALUE, (long) Long.MAX_VALUE);       test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) Long.MIN_VALUE, (long) Long.MIN_VALUE);       i = r.nextInt();      test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) i, (long) i);       test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(0), new UInt16(0));       test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(1), new UInt16(1));       test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(UInt16.MAX_VALUE), new UInt16(UInt16.MAX_VALUE));       test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(UInt16.MIN_VALUE), new UInt16(UInt16.MIN_VALUE));       i = r.nextInt();      i = i > 0 ? i : -i;      test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(i%UInt16.MAX_VALUE), new UInt16(i%UInt16.MAX_VALUE));             test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(0), new UInt32(0));       test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(1), new UInt32(1));       test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(UInt32.MAX_VALUE), new UInt32(UInt32.MAX_VALUE));       test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(UInt32.MIN_VALUE), new UInt32(UInt32.MIN_VALUE));       i = r.nextInt();      i = i > 0 ? i : -i;      test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(i%UInt32.MAX_VALUE), new UInt32(i%UInt32.MAX_VALUE));             test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(0), new UInt64(0));       test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(1), new UInt64(1));       test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(UInt64.MAX_VALUE), new UInt64(UInt64.MAX_VALUE));       test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(UInt64.MIN_VALUE), new UInt64(UInt64.MIN_VALUE));       i = r.nextInt();      i = i > 0 ? i : -i;      test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(i%UInt64.MAX_VALUE), new UInt64(i%UInt64.MAX_VALUE));             test(DBus.Binding.Tests.class, tests, "IdentityDouble", 0.0, 0.0);       test(DBus.Binding.Tests.class, tests, "IdentityDouble", 1.0, 1.0);       test(DBus.Binding.Tests.class, tests, "IdentityDouble", -1.0, -1.0);       test(DBus.Binding.Tests.class, tests, "IdentityDouble", Double.MAX_VALUE, Double.MAX_VALUE);       test(DBus.Binding.Tests.class, tests, "IdentityDouble", Double.MIN_VALUE, Double.MIN_VALUE);       i = r.nextInt();      test(DBus.Binding.Tests.class, tests, "IdentityDouble", (double) i, (double) i);             test(DBus.Binding.Tests.class, tests, "IdentityString", "", "");       test(DBus.Binding.Tests.class, tests, "IdentityString", "The Quick Brown Fox Jumped Over The Lazy Dog", "The Quick Brown Fox Jumped Over The Lazy Dog");       test(DBus.Binding.Tests.class, tests, "IdentityString", "ひらがなゲーム - かなぶん", "ひらがなゲーム - かなぶん");       testArray(DBus.Binding.Tests.class, tests, "IdentityBoolArray", Boolean.TYPE);      testArray(DBus.Binding.Tests.class, tests, "IdentityByteArray", Byte.TYPE);      testArray(DBus.Binding.Tests.class, tests, "IdentityInt16Array", Short.TYPE);      testArray(DBus.Binding.Tests.class, tests, "IdentityInt32Array", Integer.TYPE);      testArray(DBus.Binding.Tests.class, tests, "IdentityInt64Array", Long.TYPE);      testArray(DBus.Binding.Tests.class, tests, "IdentityDoubleArray", Double.class);      /*      testArray(DBus.Binding.Tests.class, tests, "IdentityUInt16Array", UInt16.class);      testArray(DBus.Binding.Tests.class, tests, "IdentityUInt32Array", UInt32.class);      testArray(DBus.Binding.Tests.class, tests, "IdentityUInt64Array", UInt64.class);      testArray(DBus.Binding.Tests.class, tests, "IdentityStringArray", String.class);      int[] is = new int[0];      test(DBus.Binding.Tests.class, tests, "Sum", 0L, is);       Random r = new Random();      int len = (r.nextInt() % 100) + 15;      is = new int[(len<0 ? -len: len)+15];      long result = 0;      for (int i = 0; i < len; i++) {         is[i] = r.nextInt();         result += is[i];      }      test(DBus.Binding.Tests.class, tests, "Sum", result, is);       byte[] bs = new byte[0];      test(DBus.Binding.SingleTests.class, singletests, "Sum", (short) 0, bs);       len = (r.nextInt() % 100);      bs = new byte[(len<0 ? -len: len)+15];      short res = 0;      for (int i = 0; i < len; i++) {         bs[i] = (byte) r.nextInt();         res += bs[i];      }      test(DBus.Binding.SingleTests.class, singletests, "Sum", res, bs);       test(DBus.Binding.Tests.class, tests, "DeStruct", new DBus.Binding.Triplet<String,UInt32,Short>("hi", new UInt32(12), new Short((short) 99)), new DBus.Binding.TestStruct("hi", new UInt32(12), new Short((short) 99)));       Map<String, String> in = new HashMap<String, String>();      Map<String, List<String>> out = new HashMap<String, List<String>>();      test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out);      in.put("hi", "there");      in.put("to", "there");      in.put("from", "here");      in.put("in", "out");      List<String> l = new Vector<String>();      l.add("hi");      l.add("to");      out.put("there", l);      l = new Vector<String>();      l.add("from");      out.put("here", l);      l = new Vector<String>();      l.add("in");      out.put("out", l);      test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out);      test(DBus.Binding.Tests.class, tests, "Trigger", null, tests, new UInt64(21389479283L));      try {         ctc.conn.sendSignal(new DBus.Binding.TestSignals.Trigger("/Test", new UInt16(15), 12.5));      } catch (DBusException DBe) {         throw new DBusExecutionException(DBe.getMessage());      }*/               test(DBus.Binding.Tests.class, tests, "Exit", null);   }