generateSimpleEntity(relatedEntityName);
String relatedEntityType = getJavaClassNameFor(relatedEntityName);
generateSimpleEntity(entityName);
generateManyToOneField(fieldName, relatedEntityType, null, null, false, null);
JavaClassSource klass = getJavaClassFor(entityName);
List<Map<String, String>> inspectionResult = metawidgetInspectorFacade.inspect(klass);
inspectionResult = angularResultEnhancer.enhanceResults(klass, inspectionResult);
assertThat(inspectionResult, hasItemWithEntry("name", fieldName));
assertThat(inspectionResult, hasItemWithEntry("many-to-one", "true"));