public class FileKeystoreManagerTest extends TestCase {
private KeystoreManager keystoreManager;
protected void setUp() throws Exception {
BaseKeystoreManager mgr = new BaseKeystoreManager();
FileKeystoreInstance keystore = new FileKeystoreInstance();
keystore.setPath(new ClassPathResource("org/apache/servicemix/jbi/security/privatestore.jks"));
keystore.setKeystorePassword("keyStorePassword");
keystore.setKeyPasswords("myalias=myAliasPassword");
keystore.setName("ks");
mgr.setKeystores(new KeystoreInstance[] { keystore });
keystoreManager = mgr;
}