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 testCheckNotNullThrowsException() {
        thrown.expect(IllegalArgumentException.class);
        EagleEyeCoreUtils.checkNotNull(null, "bar");
        // Method is not expected to return due to exception thrown
    }