public static <T> T checkNotNull(T value, String name) throws IllegalArgumentException {
        if (value == null) {
            throw new IllegalArgumentException(name + " is null");
        }
        return value;
    }
@Test
    public void testCheckNotNull() {
        Assert.assertEquals("", EagleEyeCoreUtils.checkNotNull("", "bar"));
        Assert.assertEquals(" ", EagleEyeCoreUtils.checkNotNull(" ", "bar"));
        Assert.assertEquals("foo",
                EagleEyeCoreUtils.checkNotNull("foo", "bar"));
    }