### Question:
NamingHelper { public static String toColumnName(Field field) { if (field.isAnnotationPresent(Column.class)) { Column annotation = field.getAnnotation(Column.class); return annotation.name(); } return toSQLNameDefault(field.getName()); } private  NamingHelper(); static String toSQLNameDefault(String camelCased); static String toColumnName(Field field); static String toTableName(Class<?> table);  }### Answer:
@Test public void testToSQLNameFromField() { List<Field> fieldList = ReflectionUtil.getTableFields(TestRecord.class); if (null != fieldList && !fieldList.isEmpty()) { List<String> columnList = new ArrayList<>(); for(Field field: fieldList) { columnList.add(toColumnName(field)); } boolean isIdInList = inList(columnList, "ID"); boolean isNameInList = inList(columnList, "NAME"); assertTrue(isIdInList); assertTrue(isNameInList); } }