void () { ConcurrentPackedBitsArray bitSet = ConcurrentPackedBitsArray.create(4); int N = 3000; for (int i = 0; i < N; i++) { assertEquals(0, bitSet.get(i) & 0xf); bitSet.set(i, 0xa); assertEquals(0xa, bitSet.get(i) & 0xf); bitSet.set(i, 0x2); assertEquals(0x2, bitSet.get(i) & 0xf); } try { bitSet.set(1, 0x10); fail("must throw IAE"); } catch (IllegalArgumentException ignored) { } try { bitSet.set(1, -1); fail("must throw IAE"); } catch (IllegalArgumentException ignored) { } try { ConcurrentPackedBitsArray.create(65); fail("must throw IAE"); } catch (IllegalArgumentException ignored) { } try { ConcurrentPackedBitsArray.create(0); fail("must throw IAE"); } catch (IllegalArgumentException ignored) { } }