### Question:
PropertyField { public boolean isPrimitive() { Field field = fields.getLast(); return field.getType().isPrimitive(); } PropertyField(String path, Class<ENTITY> entityClass); Object getValue(ENTITY entity); void setValue(ENTITY entity, Object value); boolean isPrimitive();  }### Answer:
@Test public void testIsPrimitive() { PropertyField<Person> age = new PropertyField<>("age", Person.class); assertTrue(age.isPrimitive()); PropertyField<Person> name = new PropertyField<>("name", Person.class); assertFalse(name.isPrimitive()); }