deadServers.add(SERVERNAME_A);
// I need a services instance that will return the AM
MasterServices services = Mockito.mock(MasterServices.class);
Mockito.when(services.getAssignmentManager()).thenReturn(am);
Mockito.when(services.getZooKeeper()).thenReturn(this.watcher);
ServerShutdownHandler handler = null;
if (sn != null) {
handler = new ServerShutdownHandler(this.server, services, deadServers, sn, false);
} else {
handler = new ServerShutdownHandler(this.server, services, deadServers, SERVERNAME_A, false);
}
handler.process();
// The region in r will have been assigned. It'll be up in zk as unassigned.
}