when(broker.getModel()).thenReturn(factory.getModel());
TaskExecutor executor = new CurrentThreadTaskExecutor();
when(broker.getTaskExecutor()).thenReturn(executor);
final FileTrustStore trustStore = new FileTrustStoreImpl(attributes, broker);
trustStore.open();
assertNotNull("Trust store configured object is not created", trustStore);
assertEquals(id, trustStore.getId());
Subject.doAs(SecurityManager.getSubjectWithAddedSystemRights(), new PrivilegedAction<Object>()
{