private IBuiltComponentMapping GetMappingWithSameReferenceType(string componentType = "MyType", string rootComponentName = "Employees") { var mapping = new ComponentMapping <Employee>(componentType); mapping.WithReference(emp => emp.EmployedIn, "test_ref"); mapping.WithReference(emp => emp.Roles, "test_ref"); mapping.WithPreexistingHierarchyReference(rootComponentName); return(mapping); }