public void before() throws Exception
{
File file = File.createTempFile("ha-jdbc", "keystore");
SecretKeyFactory factory = SecretKeyFactory.getInstance(ALGORITHM);
this.key = factory.generateSecret(new DESKeySpec(Base64.decodeBase64(KEY.getBytes())));
KeyStore store = KeyStore.getInstance(CipherCodecFactory.Property.KEYSTORE_TYPE.defaultValue);
store.load(null, null);
store.setKeyEntry(CipherCodecFactory.Property.KEY_ALIAS.defaultValue, this.key, KEY_PASSWORD.toCharArray(), null);
FileOutputStream out = new FileOutputStream(file);