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

        return n;
    }
@Test
    public void checkPositiveMustPassIfArgumentIsGreaterThanZero()
    {
        final long n = 1;
        final long actual = RangeUtil.checkPositive(n, "var");

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