@Test
public void testToFieldName() throws Exception {

    FieldScanner scanner = new FieldScanner();
    assertEquals("loginAt", scanner.toFieldName(TestModel.class.getDeclaredMethod("getLoginAt")));
    assertNull(scanner.toFieldName(TestModel.class.getDeclaredMethod("getLoginAt", long.class)));
}