public final static void main(final String[] args) {
		Random rnd = new Random();
		int len = rnd.nextInt(90)+10;
		System.out.print("Test Counting Bloom Filter\n");
		System.out.print("==========================\n");
		CountingBloomFilter cbf = new CountingBloomFilter(len);
		System.out.print("Created empty filter.\n");
		for (int i: cbf.getFilter()) assert i == 0;
		System.out.println(cbf.toString());
		System.out.print("Increase counters\n");
		for (int i=0; i<cbf.length(); i++) cbf.inc(i);
		for (int i: cbf.getFilter()) assert i == 1;
		Integer[] a = {0,1,2,3,4,5,6,7,8,9};
		cbf.inc(a);
		//Integer[] r = cbf.get(a);
		ArrayList<Short> r = cbf.get(a);
		for (Short i: r) assert i==2;
		System.out.println(cbf.toString());
		System.out.print("Decrease counters\n");
		cbf.dec(a);
		r = cbf.get(a);
		for (Short i: r) assert i==1;
		for (int i=0; i<cbf.length(); i++) cbf.dec(i);
		for (int i: cbf.getFilter()) assert i == 2;
		System.out.println(cbf.toString());
	}