@Before public void init() throws Exception { testKdc = new TestKDC(); testKdc.startDirectoryService(); testKdc.startKDC(); clientSubject = JaasUtil.loginClient(); serverSubject = JaasUtil.loginServer(); }