### Question:
ReflectionUtil { public static void setFieldValueForId(Object object, Long value) { try { Field field = getDeepField("id", object.getClass()); field.setAccessible(true); field.set(object, value); } catch (Exception e) { e.printStackTrace(); } } private  ReflectionUtil(); static List<Field> getTableFields(Class table); static void addFieldValueToColumn(ContentValues values, Field column, Object object,
                                             Map<Object, Long> entitiesMap); static void setFieldValueFromCursor(Cursor cursor, Field field, Object object); static void setFieldValueForId(Object object, Long value); static List<Class> getDomainClasses();  }### Answer:
@Test public void testSetFieldValueForId() { TestRecord record = new TestRecord(); record.setName("Bla bla"); ReflectionUtil.setFieldValueForId(record, 1L); Assert.assertEquals(1L, record.getId().longValue()); }