ConnectionPoolComponentImpl implements ConnectionPoolComponent { @Override public long getMaxAge() { return maxAge; } @Inject  ConnectionPoolComponentImpl(
        final ConnectionDecorator connectionDecorator,
        final DbmsHandlerComponent dbmsHandlerComponent,
        final PasswordComponent passwordComponent,
        @Config(name = "connectionpool.maxAge", value = "30000") long maxAge,
        @Config(name = "connectionpool.maxRetainSize", value = "32") int maxRetainSize
    ); @ExecuteBefore(State.STOPPED) void closeOpenConnections(); @Override PoolableConnection getConnection(Dbms dbms); @Override PoolableConnection getConnection(
        final String uri,
        final String user,
        final char[] password
    ); @Override Connection newConnection(final Dbms dbms); @Override Connection newConnection(
        final String uri,
        final String username,
        final char[] password
    ); @Override void returnConnection(PoolableConnection connection); @Override int poolSize(); @Override int leaseSize(); @Override long getMaxAge(); @Override int getMaxRetainSize();  }
@Test void testGetMaxAge() { long result = instance.getMaxAge(); assertTrue(result >= 0); assertEquals(MAX_AGE, instance.getMaxAge()); }