### Question:
DataSourcePoolAdapter extends AbstractPoolAdapter<DataSource> { @Override public void setMaxPoolSize(int maxPoolSize) { throw new UnsupportedOperationException( "The DataSourcePoolAdapter cannot write the max pool size" ); } DataSourcePoolAdapter(ConfigurationProperties<DataSource, Metrics, PoolAdapter<DataSource>> configurationProperties); @Override int getMaxPoolSize(); @Override void setMaxPoolSize(int maxPoolSize); static final PoolAdapterFactory<DataSource> FACTORY; }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testSetMaxPoolSize() { getPoolAdapter().setMaxPoolSize(10); }