### Question:
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override public boolean accepts(final ClientSession session) { return session instanceof EditorSession; } @Inject  SaveDiagramSessionCommand(); @Override void execute(final Callback<V> callback); @Override boolean accepts(final ClientSession session);  }### Answer:
@Test public void testAcceptsSession() { assertTrue(command.accepts(mock(EditorSession.class))); assertFalse(command.accepts(mock(ViewerSession.class))); }