CandlepinModeManager { public synchronized Mode getCurrentMode() { return this.reasons.size() > 0 ? Mode.SUSPEND : Mode.NORMAL; } CandlepinModeManager(); synchronized boolean suspendOperations(String reasonClass, String reason, String message); boolean suspendOperations(String reasonClass, String reason); synchronized boolean resolveSuspendReasonClass(String reasonClass); synchronized boolean resolveSuspendReason(String reasonClass, String reason); synchronized Mode getCurrentMode(); synchronized Set<ModeChangeReason> getModeChangeReasons(); synchronized boolean registerModeChangeListener(ModeChangeListener listener); synchronized boolean removeModeChangeListener(ModeChangeListener listener);  }
@Test public void testDefaultsToNormalMode() { CandlepinModeManager manager = this.buildModeManager(); assertEquals(Mode.NORMAL, manager.getCurrentMode()); }