private void assertConstructorThrowsException(SoapBinding binding,SecurityTokenServiceConfig config){
  boolean exceptionThrown=false;
  try {
    new SecurityTokenServiceImpl(binding,config);
  }
 catch (  IllegalArgumentException e) {
    exceptionThrown=true;
  }
 finally {
    assertTrue(exceptionThrown);
  }
}

private void assertConstructorThrowsException ( SoapBinding binding , SecurityTokenServiceConfig config ) { boolean exceptionThrown = false ; try { new SecurityTokenServiceImpl ( binding , config ) ; } catch ( IllegalArgumentException e ) { exceptionThrown = true ; } finally { assertTrue ( exceptionThrown ) ; } }
asserts that an exception is thrown if one of the arguments is null
