### Question:
AdminManager { private void setAdminStateInner (AdminState newAdminState) { stateTimer = Instant.now(); adminState = newAdminState; }  AdminState getAdminState(); Duration getTimeInState(); boolean canRunExperiments(); boolean canRunSelfHealing(); boolean mustRunSelfHealing();  }### Answer:
@Test public void setAdminStateInner () { adminManager.setAdminState(NEW_STATE, false); verify(notificationManager, never()).sendNotification(any()); ArgumentCaptor<ChaosNotification> notificationArgumentCaptor = ArgumentCaptor.forClass(ChaosNotification.class); adminManager.setAdminState(NEW_STATE, true); verify(notificationManager, times(1)).sendNotification(notificationArgumentCaptor.capture()); ChaosNotification chaosNotification = notificationArgumentCaptor.getValue(); assertEquals(chaosNotification.asMap(), expectedChaosNotification.asMap()); }