### Question:
LlamaHAServer extends LlamaAMServer implements ActiveStandbyElector.ActiveStandbyElectorCallback { void foregoActive(int sleepTime) { if (elector != null) { elector.quitElection(false); } transitionToStandby(); if (sleepTime > 0) { try { Thread.sleep(sleepTime); } catch (InterruptedException e) { LOG.error("Interrupted while waiting to rejoin election"); } } if (elector != null) { elector.joinElection(localNodeBytes); } } LlamaHAServer(); @Override void start(); @Override void stop(); @Override void becomeActive(); @Override void becomeStandby(); @Override void enterNeutralMode(); @Override void notifyFatalError(String s); @Override void fenceOldActive(byte[] bytes); synchronized boolean isActive();  }### Answer:
@Test public void testForegoActive() throws ServiceFailedException { server.becomeActive(); server.foregoActive(0); assertFalse("Server still active", server.isActive()); }