### Question:
Intenso { public static void overwrite(Object target, String fieldName, Object newValue) throws NoSuchFieldException, IllegalAccessException { Class<?> clazz = target.getClass(); Field field = clazz.getDeclaredField(fieldName); field.setAccessible(true); Field modifiersField = Field.class.getDeclaredField("modifiers"); modifiersField.setAccessible(true); modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL); field.set(target, newValue); } private  Intenso(); static T tryInvoke(Object target, String methodName); static T tryInvoke(Object target, String methodName, Class[] argTypes, Object[] args); static T invoke(Object target, String methodName); static T invoke(Object target, String methodName, Class[] argTypes, Object[] args); static T tryInvoke(Class<?> clazz, String methodName); static T tryInvoke(Class<?> clazz, String methodName, Class[] argTypes, Object[] args); static T invoke(Class<?> clazz, String methodName); static T invoke(Class<?> clazz, String methodName, Class[] argTypes, Object[] args); static T tryGet(Object target, String fieldName); static T get(Object target, String fieldName); static void trySet(Object target, String fieldName, Object value); static void set(Object target, String fieldName, Object value); static void tryOverwrite(Object target, String fieldName, Object newValue); static void overwrite(Object target, String fieldName, Object newValue); static void tryOverwrite(Class<?> clazz, String fieldName, Object newValue); static void overwrite(Class<?> clazz, String fieldName, Object newValue);  }### Answer:
@Test public void overwrite_staticField() throws Exception { assertNotEquals("hogehogehogehoge", Build.BRAND); Intenso.overwrite(Build.class, "BRAND", "hogehogehogehoge"); assertEquals("hogehogehogehoge", Build.BRAND); }