Map<String, Object> properties = new HashMap<String, Object>(attributes);
properties.remove(mandatoryProperties[i]);
try
{
TrustStore trustStore = new FileTrustStoreImpl(properties, broker);
trustStore.open();
fail("Cannot create key store without a " + mandatoryProperties[i]);
}
catch(IllegalArgumentException e)
{
// pass