@Test
public void getFieldName() throws Exception {

    final ClassFields classFields = new ClassFieldsDefault(OtherClass.class);
    final Iterator<Field> fields = classFields.getFields();
    final Field firstField = fields.next();      // get first element
    Assert.assertEquals("Check field name", "valid", ExcelFieldService.getFieldName(null, firstField, null));
    final Field secondField = fields.next();      // get second element
    Assert.assertEquals("Check field name", "money", ExcelFieldService.getFieldName(null, secondField, null));
}