@Test
public void testGetReferenceFieldDefinitions() {

    SoqlQueryAnalyzer analyzer = new SoqlQueryAnalyzer("SELECT Account.Name FROM Contact", n -> this.describeSObject(n));
    List<FieldDef> actuals = listFlatFieldDefinitions(analyzer.getFieldDefinitions());
    assertEquals(1, actuals.size());
    assertEquals("Name", actuals.get(0).getName());
    assertEquals("string", actuals.get(0).getType());
}