{
File ccFile = File.createTempFile( "credCache-", ".cc" );
Kinit kinit = new Kinit( conn );
kinit.setCredCacheFile( ccFile );
kinit.kinit(principalName, userPassword);
System.out.println( "Kinit generated file " + ccFile.getAbsolutePath() );
CredentialsCache credCache = CredentialsCache.load( ccFile );
assertNotNull( credCache );
}