### Question:
DecisionNavigatorNestedItemFactory { String getLabel(final Node<View, Edge> node) { final Optional<Expression> expression = Optional.of(getExpression(node)); return expressionEditorDefinitionsSupplier.get().getExpressionEditorDefinition(expression).get().getName(); } @Inject  DecisionNavigatorNestedItemFactory(final SessionManager sessionManager,
                                              final Event<EditExpressionEvent> editExpressionEvent,
                                              final DMNGraphUtils dmnGraphUtils,
                                              final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                              final Event<CanvasSelectionEvent> canvasSelectionEvent,
                                              final BoxedExpressionHelper helper); DecisionNavigatorItem makeItem(final Node<View, Edge> node); boolean hasNestedElement(final Node<View, Edge> node);  }### Answer:
@Test public void testGetLabel() { final DecisionTable expression = new DecisionTable(); when(boxedExpressionHelper.getExpression(node)).thenReturn(expression); final String actualLabel = factory.getLabel(node); assertEquals(DECISION_TABLE_DEFINITION_NAME, actualLabel); }