}
@Test
public void withFile() throws IOException {
File temp = copyToTempFile("/com/consol/citrus/ssh/allowed_test_key.pem");
SinglePublicKeyAuthenticator auth = new SinglePublicKeyAuthenticator("roland",temp.getAbsolutePath());
PublicKey pKey = getPublicKeyFromStream(new FileInputStream(temp));
assertTrue(auth.authenticate("roland", pKey, null));
assertFalse(auth.authenticate("guenther",pKey,null));
temp = copyToTempFile("/com/consol/citrus/ssh/forbidden_test_key.pem");
pKey = getPublicKeyFromStream(new FileInputStream(temp));
assertFalse(auth.authenticate("roland",pKey,null));
}