AMQP10JMSProperties { public Pool getPool() { return pool; }  String getRemoteUrl(); void setRemoteUrl(String remoteUrl); String getUsername(); void setUsername(String username); String getPassword(); void setPassword(String password); String getClientId(); void setClientId(String clientId); boolean isReceiveLocalOnly(); void setReceiveLocalOnly(boolean receiveLocalOnly); boolean isReceiveNoWaitLocalOnly(); void setReceiveNoWaitLocalOnly(boolean receiveNoWaitLocalOnly); DeserializationPolicy getDeserializationPolicy(); Pool getPool(); void setPool(Pool pool);  }
@Test public void testPoolDisabledByDefault() { assertFalse(properties.getPool().isEnabled()); }
@Test public void testPoolOptionsDefaults() { assertFalse(properties.getPool().isEnabled()); assertTrue(properties.getPool().isBlockIfSessionPoolIsFull()); assertTrue(properties.getPool().isUseAnonymousProducers()); assertFalse(properties.getPool().isUseProviderJMSContext()); assertEquals(1, properties.getPool().getMaxConnections()); assertEquals(500, properties.getPool().getMaxSessionsPerConnection()); assertEquals(0, properties.getPool().getExplicitProducerCacheSize()); assertEquals(30000, properties.getPool().getConnectionIdleTimeout().toMillis()); assertEquals(-1, properties.getPool().getConnectionCheckInterval().toMillis()); assertEquals(-1, properties.getPool().getBlockIfSessionPoolIsFullTimeout().toMillis()); }