DaleqSupportBean implements FactoryBean<DaleqSupport>, InitializingBean { public void setDataSource(final DataSource dataSource) { this.dataSource = dataSource; }  void setDataSource(final DataSource dataSource); void setDataTypeFactory(final IDataTypeFactory dataTypeFactory); void setDataSetFactory(final IDataSetFactory dataSetFactory); @Override void afterPropertiesSet(); @Override DaleqSupport getObject(); @Override Class<?> getObjectType(); @Override boolean isSingleton();  }
@Test(expected = NullPointerException.class) public void nullDataSource_should_fail() { bean.setDataSource(null); init(); }