}
public void testNullParameterForRequiredBean() throws Exception
{
final Element element = this.getRootElement( "/incorrect/test9.xml" );
final NullParameterForRequiredBean cfg = XML2Java.bind( element, NullParameterForRequiredBean.class );
Assert.assertTrue( "Expected false", cfg.isProperty().equals( Boolean.FALSE ) );
try
{
cfg.setProperty( null );
Assert.fail( "This test method had to fail!" );
}
catch ( Exception e )
{
final String[] expectedSubstrings = new String[]