@SneakyThrows(ReflectiveOperationException.class)
    public static void setStaticFieldValue(final Class<?> target, final String fieldName, final Object value) {
        Field field = target.getDeclaredField(fieldName);
        boolean accessible = field.isAccessible();
        if (!accessible) {
            field.setAccessible(true);
        }
        field.set(target, value);
        if (!accessible) {
            field.setAccessible(false);
        }
    }
@Test
    void assertSetStaticFieldValue() {
        ReflectionUtils.setStaticFieldValue(ReflectionFixture.class, "staticValue", "other_value");
        assertThat(ReflectionFixture.getStaticValue(), is("other_value"));
        ReflectionUtils.setStaticFieldValue(ReflectionFixture.class, "staticValue", "static_value");
    }