public static int checkLessThanOrEqual(int n, long expected, String name)
    {
        if (n > expected)
        {
            throw new IllegalArgumentException(name + ": " + n + " (expected: <= " + expected + ')');
        }

        return n;
    }
@Test
    public void checkLessThanOrEqualMustPassIfArgumentIsEqualToExpected()
    {
        final int n = 1;
        final int actual = RangeUtil.checkLessThanOrEqual(n, 1, "var");

        assertThat(actual, is(equalTo(n)));
    }