### Question:
DefinitionUtils { public <T> String getNameIdentifier(final T definition) { return definitionManager.adapters().forDefinition().getMetaPropertyField(definition, PropertyMetaTypes.NAME); } protected  DefinitionUtils(); @Inject @SuppressWarnings("all")  DefinitionUtils(final DefinitionManager definitionManager,
                           final DefinitionsCacheRegistry definitionsRegistry); String getName(final T definition); String getNameIdentifier(final T definition); String getTitle(final String definitionId); @SuppressWarnings("unchecked") Bounds buildBounds(final Object definition,
                              final double x,
                              final double y); MorphDefinition getMorphDefinition(final T definition); boolean hasMorphTargets(final Object definition); String getDefinitionSetId(final Class<?> type); String[] getDefinitionIds(final T definition); boolean isAllPolicy(final MorphDefinition definition); boolean isNonePolicy(final MorphDefinition definition); boolean isDefaultPolicy(final MorphDefinition definition); Annotation getQualifier(final String defSetId); static boolean isNodeFactory(final Class<? extends ElementFactory> graphFactoryClass,
                                        final FactoryRegistry registry); static boolean isEdgeFactory(final Class<? extends ElementFactory> graphFactoryClass,
                                        final FactoryRegistry registry); DefinitionManager getDefinitionManager(); static Class<? extends PropertyType> getDefaultPropertyType(final Class<?> clazz); static Object getElementDefinition(final Element element);  }### Answer:
@Test public void getNameIdentifier() { final String nameIdentifier = tested.getNameIdentifier(domainObject); assertEquals(TestingSimpleDomainObject.NAME, nameIdentifier); }