public void testDefault() throws Exception {
assertNotNull("The 'Default' GatewayReceiverFactoryBean was not properly configured and initialized!",
defaultGatewayReceiverFactory);
assertTrue(defaultGatewayReceiverFactory.isAutoStartup());
GatewayReceiver defaultGatewayReceiver = defaultGatewayReceiverFactory.getObject();
try {
assertNotNull(defaultGatewayReceiver);
assertTrue(StringUtils.isEmpty(defaultGatewayReceiver.getBindAddress()));
assertEquals("skullbox", defaultGatewayReceiver.getHost());
assertEquals(12345, defaultGatewayReceiver.getStartPort());
assertEquals(54321, defaultGatewayReceiver.getEndPort());
assertEquals(5000, defaultGatewayReceiver.getMaximumTimeBetweenPings());
assertTrue(defaultGatewayReceiver.isRunning());
assertEquals(32768, defaultGatewayReceiver.getSocketBufferSize());
}
finally {
defaultGatewayReceiver.stop();
}
}