public static Object getField(Field field, Object target) {
        try {
            return field.get(target);
        } catch (IllegalAccessException ex) {
            handleReflectionException(ex);
        }
        throw new IllegalStateException("Should never get here");
    }
@Test
    void testGetFieldWithoutAccess() throws NoSuchFieldException {
        assertThrows(IllegalStateException.class, () -> {
            Field field = listStr.getClass().getDeclaredField("elementData");
            ReflectUtils.getField(field, listStr);
        });
    }