{
Map<String, Object> attributes = getKeyStoreAttributes();
Map<String, Object> attributesCopy = new HashMap<String, Object>(attributes);
Broker broker = mock(Broker.class);
TaskExecutor executor = new CurrentThreadTaskExecutor();
when(broker.getObjectFactory()).thenReturn(_factory);
when(broker.getModel()).thenReturn(_factory.getModel());
when(broker.getTaskExecutor()).thenReturn(executor);
final FileKeyStore keyStore =