File file = new File(FTP_ROOT_DIR + "/hello.txt");
assertTrue("File should exist: " + file, file.exists());
assertEquals("Hello World", context.getTypeConverter().convertTo(String.class, file));
// did we actually set the preferedAuthentifications
SftpEndpoint endpoint = context.getEndpoint(uri, SftpEndpoint.class);
assertEquals(preferredAuthentications, endpoint.getConfiguration().getPreferredAuthentications());
}