### Question:
DefaultViewerSession extends ViewerSession { @Override public void destroy() { session.destroy(); } @Inject  DefaultViewerSession(final ManagedSession session,
                                final CanvasCommandManager<AbstractCanvasHandler> canvasCommandManager); @PostConstruct void constructInstance(); @Override void init(final Metadata metadata,
                     final Command callback); void init(final Consumer<ManagedSession> sessionControls,
                     final Metadata metadata,
                     final Command callback); @Override void open(); @Override void destroy(); @Override String getSessionUUID(); @Override AbstractCanvas getCanvas(); @Override AbstractCanvasHandler getCanvasHandler(); @Override CanvasCommandManager<AbstractCanvasHandler> getCommandManager(); @Override MediatorsControl<AbstractCanvas> getMediatorsControl(); @Override SelectionControl<AbstractCanvasHandler, Element> getSelectionControl();  }### Answer:
@Test @SuppressWarnings("unchecked") public void testDestroy() { tested.destroy(); verify(managedSession, times(1)).destroy(); }