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