// re-authenticating in cases where it otherwise wouldn't. One of the sections on this page briefly mentions it:
// http://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/Troubleshooting.html
setSystemProperty("javax.security.auth.useSubjectCredsOnly", "false");
// Setup KDC and principal
kdc = new MiniKdc(MiniKdc.createConf(), new File(getTestCaseDir()));
kdc.start();
keytabFile = new File(getTestCaseDir(), "test.keytab");
String serverPrincipal = "zookeeper/127.0.0.1";
kdc.createPrincipal(keytabFile, getPrincipal(), serverPrincipal);