public static void main(String[] _args) {
		
		Random rand = new Random(0); 
		final int HOLDERSIZE = 1000;
		TestObj[] holder = new TestObj[HOLDERSIZE];
		TestObj testobj = new TestObj(0x12345678);

		if (!OkraUtil.okraLibExists()) {
			System.out.println("...unable to create context, using fake references");
			for (int i=0; i<4; i++) {
				System.out.println("Fake Reference " + OkraUtil.getRefHandle(testobj));
			}
			System.exit(0);		
		}

		context = new OkraContext();
		context.setVerbose(true);
		for (int i=0; i<3; i++) {
			refHandles[i] = OkraUtil.getRefHandle(new TestObj(0x12345678+i));
		}
	
		testRefHandles();

		for (int i=0; i<3; i++) {
			for (int j=0; j<100000; j++) {
				holder[rand.nextInt(HOLDERSIZE)] = new TestObj(j);
			}
			System.gc();
			testRefHandles();
		}
	}