final GrantMetaData grant =
new GrantMetaData( "file:/", "jenny", "default",
new PermissionMetaData[]{permission} );
final KeyStoreMetaData keyStore =
new KeyStoreMetaData( "default", "http://spice.sourceforge.net", "DoDgY" );
final PolicyMetaData metaData =
new PolicyMetaData( new KeyStoreMetaData[]{keyStore}, new GrantMetaData[]{grant} );
final TestResolver resolver = new TestResolver();
final Policy policy = builder.buildPolicy( metaData, resolver );
final CodeSource codesource =
new CodeSource( new URL( "file:/" ), new Certificate[]{MockCertificate.JENNY_CERTIFICATE} );
final PermissionCollection permissions = policy.getPermissions( codesource );