### Question:
ElementProxy implements ShapeProxy { public CommandResult<CanvasViolation> execute(final Command<AbstractCanvasHandler, CanvasViolation> command) { return commandManager.execute(canvasHandler, command); } @Inject  ElementProxy(final SessionCommandManager<AbstractCanvasHandler> commandManager,
                        final Event<CanvasSelectionEvent> selectionEvent,
                        final @Any ManagedInstance<DefaultCanvasCommandFactory> commandFactories,
                        final DefinitionUtils definitionUtils); @SuppressWarnings("unchecked") ElementProxy setView(final ShapeProxyView<? extends ElementShape> view); ElementProxy setProxyBuilder(final Supplier<ElementShape> proxyBuilder); ElementProxy setCanvasHandler(final AbstractCanvasHandler canvasHandler); @Override void start(final double x,
                      final double y); @Override void destroy(); CommandResult<CanvasViolation> execute(final Command<AbstractCanvasHandler, CanvasViolation> command); Canvas getCanvas(); AbstractCanvasHandler getCanvasHandler();  }### Answer:
@Test @SuppressWarnings("unchecked") public void testExecute() { Command c = mock(Command.class); tested.execute(c); verify(commandManager, times(1)).execute(eq(canvasHandler), eq(c)); verify(commandManager, never()).allow(any(), any()); }