### Question:
BackendDefinitionAdapter extends AbstractReflectAdapter<T> implements DefinitionAdapter<T>,
                   HasInheritance { @Override public Class<? extends ElementFactory> getGraphFactoryType(final T definition) { Definition annotation = getDefinitionAnnotation(definition.getClass()); return null != annotation ? annotation.graphFactory() : null; } @Inject  BackendDefinitionAdapter(); @Override boolean accepts(Class<?> pojo); @Override DefinitionId getId(final T definition); @Override String[] getPropertyFields(final T pojo); @Override String getMetaPropertyField(final T pojo,
                                       final PropertyMetaTypes metaType); @Override String getCategory(final T definition); @Override String getTitle(final T definition); @Override String getDescription(final T definition); @Override @SuppressWarnings("all") String[] getLabels(final T definition); @Override Class<? extends ElementFactory> getGraphFactoryType(final T definition); static Class<? extends ElementFactory> getGraphFactory(final Class<?> type); @Override String getBaseType(final Class<?> type); @Override String[] getTypes(final String baseType);  }### Answer:
@Test public void testGraphFactory() { final Class<? extends ElementFactory> graphFactoryType = tested.getGraphFactoryType(instance); assertEquals(NodeFactory.class, graphFactoryType); }