testConstructorConfigValidation(config, "Invalid Smooks bean configuration. 'beanClass' <param> not specified.");
}
private void testConstructorConfigValidation(SmooksResourceConfiguration config, String expected) {
try {
Configurator.configure(new BeanPopulator(), config, new MockApplicationContext());
fail("Expected SmooksConfigurationException - " + expected);
} catch(SmooksConfigurationException e) {
Throwable t = e.getCause();
if(t.getMessage().indexOf(expected) == -1) {
e.printStackTrace();