### Question:
SaveDiagramSessionCommand extends AbstractClientSessionCommand<EditorSession> { @Override protected void setEnabled(final boolean enabled) { super.setEnabled(false); } SaveDiagramSessionCommand(); @Override @SuppressWarnings("unchecked") void execute(final Callback<V> callback); @Override boolean accepts(final ClientSession session);  }### Answer:
@Test public void testSetEnabled() { command.setEnabled(false); assertThat(command.isEnabled()).isFalse(); command.setEnabled(true); assertThat(command.isEnabled()).isFalse(); }
@Test public void testSetEnabled() { command.setEnabled(false); assertFalse(command.isEnabled()); command.setEnabled(false); assertFalse(command.isEnabled()); }