static Queue<IdRange> parseRanges(String range)    {
        // Remove the starting and closing brackets together with whitespaces
        range = range.replaceAll("^\\s*\\[\\s*", "");
        range = range.replaceAll("\\s*]\\s*$", "");

        return Arrays.stream(range.split("\\s*,\\s*")).map(IdRange::new).collect(Collectors.toCollection(ArrayDeque::new));
    }
@Test
    public void testParseRange()  {
        VALID_RANGES.forEach(range -> {
            assertThat(NodeIdRange.parseRanges(range), is(notNullValue()));
        });
    }