public static DataSourcePoolProperties build(Environment environment) {
        DataSourcePoolProperties result = new DataSourcePoolProperties();
        Binder.get(environment).bind("db.pool.config", Bindable.ofInstance(result.getDataSource()));
        return result;
    }
@Test
    void testBuild() {
        DataSourcePoolProperties poolProperties = DataSourcePoolProperties.build(environment);
        poolProperties.setJdbcUrl(JDBC_URL);
        poolProperties.setDriverClassName(JDBC_DRIVER_CLASS_NAME);
        poolProperties.setUsername(USERNAME);
        poolProperties.setPassword(PASSWORD);
        HikariDataSource actual = poolProperties.getDataSource();
        assertEquals(JDBC_URL, actual.getJdbcUrl());
        assertEquals(JDBC_DRIVER_CLASS_NAME, actual.getDriverClassName());
        assertEquals(USERNAME, actual.getUsername());
        assertEquals(PASSWORD, actual.getPassword());
        assertEquals(CONNECTION_TIMEOUT.longValue(), actual.getConnectionTimeout());
        assertEquals(DataSourcePoolProperties.DEFAULT_VALIDATION_TIMEOUT, actual.getValidationTimeout());
        assertEquals(DataSourcePoolProperties.DEFAULT_IDLE_TIMEOUT, actual.getIdleTimeout());
        assertEquals(MAX_POOL_SIZE.intValue(), actual.getMaximumPoolSize());
        assertEquals(DataSourcePoolProperties.DEFAULT_MINIMUM_IDLE, actual.getMinimumIdle());
    }