public void createConnectionWithProxyHost() throws IOException {
SmppConfiguration configuration = new SmppConfiguration();
configuration.setHttpProxyHost("localhost");
configuration.setHttpProxyPort(new Integer(3128));
SmppConnectionFactory factory = SmppConnectionFactory.getInstance(configuration);
Connection connection = factory.createConnection("localhost", 2775);
try {
Assert.assertNotNull(connection);
Assert.assertTrue(connection.isOpen());
} finally {
if (connection != null) {
connection.close();
}
}
}