@RunWith(MockitoJUnitRunner.class)
public class MasterRespondsWithNoZKTest extends SystemTestBase {
@Override
protected ZooKeeperTestManager zooKeeperTestManager() {
final ZooKeeperTestManager testManager = mock(ZooKeeperTestManager.class);
final MockCuratorClientFactory mockCuratorClientFactory = new MockCuratorClientFactory();
final CuratorFramework curator = mockCuratorClientFactory.newClient(null, 0, 0, null, null);
when(testManager.curator()).thenReturn(curator);
when(testManager.connectString()).thenReturn("127.0.0.1");
return testManager;
}