### Question:
DMNIncludedModelHandler implements DRGElementHandler { CompositeCommand<AbstractCanvasHandler, CanvasViolation> buildDeleteCommand(final DRGElement drgElement) { final CompositeCommand.Builder<AbstractCanvasHandler, CanvasViolation> commandBuilder = new CompositeCommand.Builder<>(); final Node node = getNode(drgElement); commandBuilder.addCommand(canvasCommandFactory.deleteNode(node)); return commandBuilder.build(); } @Inject  DMNIncludedModelHandler(final DMNGraphUtils dmnGraphUtils,
                                   final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                   final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                   final DefinitionUtils definitionUtils); @Override void update(final String oldModelName,
                       final String newModelName); @Override void destroy(final String oldModelName);  }### Answer:
@Test public void testBuildDeleteCommand() { final Decision drgElement = makeDecision("model1.tUUID", "string", true); final AbstractCanvasHandler context = mock(AbstractCanvasHandler.class); final Node node = mock(Node.class); when(canvasCommandFactory.deleteNode(node)).thenReturn(canvasCommand); doReturn(node).when(handler).getNode(drgElement); final Command<AbstractCanvasHandler, CanvasViolation> command = handler.buildDeleteCommand(drgElement).getCommands().get(0); command.execute(context); assertEquals(canvasCommand, command); }