AccessorSyntheticField implements SyntheticField { public Class<?> getType() { if (null != field) { return field.getType(); } else { return getter.getReturnType(); } } AccessorSyntheticField(ReflectionHelper reflectionHelper, Class<?> clazz, Field field);   AccessorSyntheticField(
            ReflectionHelper reflectionHelper, Class<?> clazz, String name, boolean readOnlyField); Object get(Object object); void set(Object object, Object value); String getName(); Class<?> getType(); Type getGenericType();  }
@Test public void testGetType() throws Exception { assertThat(accessorSyntheticField.getType()).isEqualTo(String.class); }