public void testMPIChange() throws Exception
{
ZooKeeper zk = getClient(0);
VoltZK.createPersistentZKNodes(zk);
LeaderCache mpwriter = new LeaderCache(zk, VoltZK.iv2mpi);
HostMessenger hm = mock(HostMessenger.class);
when(hm.getZK()).thenReturn(m_messengers.get(0).getZK());
Cartographer dut = new Cartographer(hm, 0, false);
mpwriter.start(true);
// initial master
mpwriter.put(MpInitiator.MP_INIT_PID, 0l);
verify(hm, timeout(10000)).send(anyLong(), any(VoltMessage.class));