public boolean isEnabled() {
        return !allowedCpusList.isEmpty();
    }
@Test
    public void whenGroup() {
        ThreadAffinity threadAffinity = new ThreadAffinity("[1-5]");

        assertTrue(threadAffinity.isEnabled());
        assertEquals(5, threadAffinity.allowedCpusList.size());
        assertEquals(threadAffinity.allowedCpusList.get(0), newBitset(1, 2, 3, 4, 5));
        assertEquals(threadAffinity.allowedCpusList.get(1), newBitset(1, 2, 3, 4, 5));
        assertEquals(threadAffinity.allowedCpusList.get(2), newBitset(1, 2, 3, 4, 5));
        assertEquals(threadAffinity.allowedCpusList.get(3), newBitset(1, 2, 3, 4, 5));
        assertEquals(threadAffinity.allowedCpusList.get(4), newBitset(1, 2, 3, 4, 5));
    }