public static void test22() {
    byte[] b = new byte[10];
    for (int i = 0; i < 10; i++) b[i] = (byte) i;

    mc.set("foo", b);
    assert Arrays.equals((byte[]) mc.get("foo"), b);
  }
 public static void test11() {
   mc.set("foo", new Integer(100), new Date(System.currentTimeMillis()));
   try {
     Thread.sleep(1000);
   } catch (Exception ex) {
   }
   assert mc.get("foo") == null;
 }
 public static void test10() {
   mc.set("foo", new Float(1.1f));
   Float o = (Float) mc.get("foo");
   assert o.floatValue() == 1.1f;
 }
 public static void test9() {
   mc.set("foo", new Double(1.1));
   Double o = (Double) mc.get("foo");
   assert o.doubleValue() == 1.1;
 }
 public static void test8() {
   mc.set("foo", new Long(Long.MAX_VALUE));
   Long o = (Long) mc.get("foo");
   assert o.longValue() == Long.MAX_VALUE;
 }
 public static void test7() {
   mc.set("foo", new Short((short) 100));
   Short o = (Short) mc.get("foo");
   assert o.shortValue() == 100;
 }
 public static void test6() {
   mc.set("foo", new StringBuffer("hello"));
   StringBuffer o = (StringBuffer) mc.get("foo");
   assert o.toString().equals("hello");
 }
 public static void test5() {
   mc.set("foo", new Byte((byte) 127));
   Byte b = (Byte) mc.get("foo");
   assert b.byteValue() == 127;
 }
 public static void test4() {
   mc.set("foo", new Character('z'));
   Character c = (Character) mc.get("foo");
   assert c.charValue() == 'z';
 }
 public static void test3() {
   String input = "test of string encoding";
   mc.set("foo", input);
   String s = (String) mc.get("foo");
   assert s.equals(input);
 }
 public static void test2() {
   mc.set("foo", new Integer(Integer.MAX_VALUE));
   Integer i = (Integer) mc.get("foo");
   assert i.intValue() == Integer.MAX_VALUE;
 }
 public static void test1() {
   mc.set("foo", Boolean.TRUE);
   Boolean b = (Boolean) mc.get("foo");
   assert b.booleanValue();
 }
 public static void test23() {
   TestClass tc = new TestClass("foo", "bar", new Integer(32));
   mc.set("foo", tc);
   assert tc.equals((TestClass) mc.get("foo"));
 }
 public static void test13() {
   Date d1 = new Date();
   mc.set("foo", d1);
   Date d2 = (Date) mc.get("foo");
   assert d1.equals(d2);
 }