### Question:
DMNDocumentationDRDsFactory { void setExpressionContainerGrid(final Diagram diagram, final String uuid) { final Node<View, Edge> node = getNode(diagram, uuid); final Object definition = DefinitionUtils.getElementDefinition(node); final HasExpression hasExpression = expressionHelper.getHasExpression(node); final Optional<HasName> hasName = Optional.of((HasName) definition); final ExpressionContainerGrid grid = getExpressionContainerGrid(); grid.setExpression(node.getUUID(), hasExpression, hasName, false); clearSelections(grid); } @Inject  DMNDocumentationDRDsFactory(final SessionManager sessionManager,
                                       final BoxedExpressionHelper expressionHelper); List<DMNDocumentationDRD> create(final Diagram diagram);  }### Answer:
@Test public void testSetExpressionContainerGrid() { final String uuid = "0000-1111-2222-3333"; final String name = "Decision-1"; final Node<View, Edge> node = new NodeImpl<>(uuid); final Decision drgElement = new Decision(); final HasExpression hasExpression = mock(HasExpression.class); final View view = mock(View.class); node.setContent(view); drgElement.setName(new Name(name)); when(graph.nodes()).thenReturn(singletonList(node)); when(view.getDefinition()).thenReturn(drgElement); when(expressionHelper.getHasExpression(node)).thenReturn(hasExpression); factory.setExpressionContainerGrid(diagram, uuid); verify(expressionContainerGrid).setExpression(uuid, hasExpression, Optional.of(drgElement), false); verify(factory).clearSelections(expressionContainerGrid); }