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

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

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