public static String getFieldName(Field field) {
        if (null == field) {
            return null;
        }
        return field.getName();
    }
@Test
    public void getFieldNameTest() {
        Field privateField = ReflectUtil.getField(TestSubClass.class, "privateField");
        String fieldName = ReflectUtil.getFieldName(privateField);
        Assert.assertNotNull(fieldName);

        Field subField = ReflectUtil.getField(TestSubClass.class, "subField");
        String subfieldName = ReflectUtil.getFieldName(subField);
        Assert.assertNotNull(subfieldName);
    }