public boolean isEnabled() {
        return !allowedCpusList.isEmpty();
    }
@Test
    public void whenComplex() {
        ThreadAffinity threadAffinity = new ThreadAffinity("1,3-4,[5-8]:2,10,[20,21,32]:2");

        assertTrue(threadAffinity.isEnabled());
        assertEquals(8, threadAffinity.allowedCpusList.size());
        assertEquals(threadAffinity.allowedCpusList.get(0), newBitset(1));
        assertEquals(threadAffinity.allowedCpusList.get(1), newBitset(3));
        assertEquals(threadAffinity.allowedCpusList.get(2), newBitset(4));
        assertEquals(threadAffinity.allowedCpusList.get(3), newBitset(5, 6, 7, 8));
        assertEquals(threadAffinity.allowedCpusList.get(4), newBitset(5, 6, 7, 8));
        assertEquals(threadAffinity.allowedCpusList.get(5), newBitset(10));
        assertEquals(threadAffinity.allowedCpusList.get(6), newBitset(20, 21, 32));
        assertEquals(threadAffinity.allowedCpusList.get(7), newBitset(20, 21, 32));
    }