MyKey2 mykey2 = (MyKey2)KeyFactory.create(MyKey2.class);
KeyFactory.Generator gen = new KeyFactory.Generator(); gen.setInterface(MyKey2.class); gen.setHashConstant(17); gen.setHashMultiplier(37); MyKey2 mykey2 = (MyKey2)gen.create();
    public void testNested() throws Exception {        MyKey2 mykey2 = (MyKey2)KeyFactory.create(MyKey2.class);        Object instance = mykey2.newInstance(new int[][]{ { 1, 2 }, { 3, 4 } });        assertTrue(instance.hashCode() == -1836783069);    }