    @Test
    public void testCheckRangeType_invalidPoint() {

        assertThat(captureThrowable(() -> checkRangeType("10", Type.POINT_TO_POINT, NO_BUS)))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("value must be between 11 and 99");

        assertThat(captureThrowable(() -> checkRangeType("100", Type.POINT_TO_POINT, NO_BUS)))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("invalid length [1-2]");

        assertThat(captureThrowable(() -> checkRangeType("11", Type.POINT_TO_POINT, "x")))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("invalid bus size");

        assertThat(captureThrowable(() -> checkRangeType("99", Type.POINT_TO_POINT, "x")))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("invalid bus size");

        assertThat(captureThrowable(() -> checkRangeType("10", Type.POINT_TO_POINT_BUS, NO_BUS)))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("value must be between 11 and 99");

        assertThat(captureThrowable(() -> checkRangeType("100", Type.POINT_TO_POINT_BUS, NO_BUS)))
            .isInstanceOf(IllegalArgumentException.class)
            .hasMessage("invalid length [1-2]");
    }