ScheduleStatus.DRAINING,
MaintenanceControllerImpl.DRAINING_MESSAGE))
.andReturn(true);
expectMaintenanceModeChange(HOST_A, DRAINING);
expect(storageUtil.attributeStore.getHostAttributes(HOST_A)).andReturn(Optional.of(
IHostAttributes.build(new HostAttributes().setHost(HOST_A).setMode(DRAINING))));
// TaskA is FINISHED and therefore no longer active
expectFetchTasksByHost(HOST_A, ImmutableSet.<ScheduledTask>of());
expectMaintenanceModeChange(HOST_A, DRAINED);
expectMaintenanceModeChange(HOST_A, NONE);