### Question:
DMNDeleteElementsCommand extends DeleteElementsCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new DMNDeleteElementsGraphCommand(() -> elements, new CanvasMultipleDeleteProcessor(), getGraphsProvider()); } DMNDeleteElementsCommand(final Collection<Element> elements,
                                    final GraphsProvider graphsProvider); GraphsProvider getGraphsProvider();  }### Answer:
@Test public void testNewGraphCommand() { final GraphsProvider selectedDiagramProvider = mock(GraphsProvider.class); final ArrayList<Element> elements = new ArrayList<>(); final Element element = mock(Element.class); when(element.getUUID()).thenReturn("uuid"); elements.add(element); final DMNDeleteElementsCommand cmd = new DMNDeleteElementsCommand(elements, selectedDiagramProvider); final Command<GraphCommandExecutionContext, RuleViolation> actual = cmd.newGraphCommand(null); assertTrue(actual instanceof DMNDeleteElementsGraphCommand); assertEquals(cmd.getGraphsProvider(), ((DMNDeleteElementsGraphCommand) actual).getGraphsProvider()); }