@Test public void setAdminState () { ArgumentCaptor<ChaosNotification> notificationArgumentCaptor = ArgumentCaptor.forClass(ChaosNotification.class); adminManager.setAdminState(NEW_STATE); verify(notificationManager, times(1)).sendNotification(notificationArgumentCaptor.capture()); ChaosNotification chaosNotification = notificationArgumentCaptor.getValue(); assertEquals(chaosNotification.asMap(), expectedChaosNotification.asMap()); assertEquals(NEW_STATE, adminManager.getAdminState()); }
void setAdminState (AdminState newAdminState) { setAdminState(newAdminState, true); }
AdminManager { void setAdminState (AdminState newAdminState) { setAdminState(newAdminState, true); } }
AdminManager { void setAdminState (AdminState newAdminState) { setAdminState(newAdminState, true); }  }
AdminManager { void setAdminState (AdminState newAdminState) { setAdminState(newAdminState, true); }  AdminState getAdminState(); Duration getTimeInState(); boolean canRunExperiments(); boolean canRunSelfHealing(); boolean mustRunSelfHealing(); }
AdminManager { void setAdminState (AdminState newAdminState) { setAdminState(newAdminState, true); }  AdminState getAdminState(); Duration getTimeInState(); boolean canRunExperiments(); boolean canRunSelfHealing(); boolean mustRunSelfHealing();  }