### Question:
PooledConnectionFactory implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory { public void stop() { if (stopped.compareAndSet(false, true)) { LOG.debug("Stopping the PooledConnectionFactory, number of connections in cache: {}", connectionsPool != null ? connectionsPool.getNumActive() : 0); try { if (connectionsPool != null) { connectionsPool.close(); connectionsPool = null; } } catch (Exception e) { } } }  void initConnectionsPool(); Object getConnectionFactory(); void setConnectionFactory(final Object toUse); @Override QueueConnection createQueueConnection(); @Override QueueConnection createQueueConnection(String userName, String password); @Override TopicConnection createTopicConnection(); @Override TopicConnection createTopicConnection(String userName, String password); @Override Connection createConnection(); @Override synchronized Connection createConnection(String userName, String password); void start(); void stop(); void clear(); int getMaximumActiveSessionPerConnection(); void setMaximumActiveSessionPerConnection(int maximumActiveSessionPerConnection); void setBlockIfSessionPoolIsFull(boolean block); boolean isBlockIfSessionPoolIsFull(); int getMaxConnections(); void setMaxConnections(int maxConnections); int getIdleTimeout(); void setIdleTimeout(int idleTimeout); void setExpiryTimeout(long expiryTimeout); long getExpiryTimeout(); boolean isCreateConnectionOnStartup(); void setCreateConnectionOnStartup(boolean createConnectionOnStartup); boolean isUseAnonymousProducers(); void setUseAnonymousProducers(boolean value); void setTimeBetweenExpirationCheckMillis(long timeBetweenExpirationCheckMillis); long getTimeBetweenExpirationCheckMillis(); int getNumConnections(); long getBlockIfSessionPoolIsFullTimeout(); void setBlockIfSessionPoolIsFullTimeout(long blockIfSessionPoolIsFullTimeout); boolean isReconnectOnException(); void setReconnectOnException(boolean reconnectOnException);  }### Answer:
@Test(timeout = 60000) public void testInstanceOf() throws Exception { PooledConnectionFactory pcf = new PooledConnectionFactory(); assertTrue(pcf instanceof QueueConnectionFactory); assertTrue(pcf instanceof TopicConnectionFactory); pcf.stop(); }