@Test(expected = NoSuchFieldException.class) public void testSetFieldValueFromCursor() throws NoSuchFieldException { final TestRecord record = new TestRecord().setName("bla bla"); Long id = record.save(); record.setId(id); Cursor cursor = Select.from(TestRecord.class).getCursor(); TestRecord testRecord = new TestRecord(); Field field = TestRecord.class.getField("name"); ReflectionUtil.setFieldValueFromCursor(cursor, field, testRecord); }