public static void updateFinalModifierField(Field field) {
        final Field modifiersField = getField(Field.class, "modifiers");
        if (modifiersField != null) {
            try {
                modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
            } catch (IllegalAccessException ex) {
                LOGGER.log(Level.WARNING, String.format(Locale.ENGLISH,
                        "Could not update final field named %s", field.getName()));
            }
        }
    }
@Test
    public void updateFinalModifierField() throws NoSuchFieldException {
        final Field finalField = TestReflect.class.getDeclaredField("finalField");
        Assert.assertTrue(Modifier.isFinal(finalField.getModifiers()));
        ReflectUtils.updateFinalModifierField(finalField);
    }