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

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

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