DataSourceInfoGroup extends DataSourceInfo { public DataSourceInfoGroup builder(DataSourceInfo dataSourceInfo) { this.setJdbcUrl(dataSourceInfo.getJdbcUrl()); this.setBusyConnections(dataSourceInfo.getBusyConnections()); this.setEstablishedConnections(dataSourceInfo.getEstablishedConnections()); this.setMaxConnections(dataSourceInfo.getMaxConnections()); this.setDataSourceCount(1); return this; } DataSourceInfoGroup(); DataSourceInfoGroup builder(DataSourceInfo dataSourceInfo); int getDataSourceCount(); void setDataSourceCount(int dataSourceCount); void addBusyConnections(int busyConnectionsDelta); void addEstablishedConnections(int establishedConnectionsDelta); void addMaxConnections(int maxConnectionsDelta); void addDataSourceCount(int dataSourceCountDelta); void addDataSourceInfo(DataSourceInfo dataSourceInfoDelta);  }
@Test public void javabeanTester() { JavaBeanTester.builder(DataSourceInfoGroup.class).loadData().test(); }