public void setUp() throws Exception {
mp = new MicroPlatform();
mp.defineInstance( IAuthorizationPolicy.class, new TestAuthorizationPolicy() );
mp.start();
ISystemConfig systemConfig = new SystemConfig();
IConfiguration securityConfig = mock( IConfiguration.class );
Properties props = new Properties();
props.setProperty( "provider", "jackrabbit" );
when( securityConfig.getProperties() ).thenReturn( props );
when( securityConfig.getId() ).thenReturn( "security" );
systemConfig.registerConfiguration( securityConfig );
systemResource = new SystemResource( systemConfig );
StandaloneApplicationContext applicationContext = new StandaloneApplicationContext( getSolutionPath(), "" ); //$NON-NLS-1$