### Question:
KeyStoreEncryptionFactory extends
        EncryptionTransformFactory<BasicEncryptionOutputTransform, BasicEncryptionInputTransform> { public String getMasterEncryptionKeyAlias() { return masterEncryptionKeyAlias; } KeyStoreEncryptionFactory(KeyStore keyStore,
            String masterEncryptionKeyAlias, 
            char[] keyStorePassword);  KeyStoreEncryptionFactory(KeyStore keyStore,
            String masterEncryptionKeyAlias, char[] masterKeyPassword, Provider provider); @Override Map<String, String> rekey(Map<String, String> metadata); @Override BasicEncryptionOutputTransform getOutputTransform(
            OutputStream streamToEncodeTo, Map<String, String> metadataToEncode); @Override BasicEncryptionOutputTransform getOutputTransform(
            InputStream streamToEncode, Map<String, String> metadataToEncode); @Override BasicEncryptionInputTransform getInputTransform(
            String transformConfig, InputStream streamToDecode,
            Map<String, String> metadata); String getMasterEncryptionKeyAlias(); void setMasterEncryptionKeyAlias(String alias);  }### Answer:
@Test public void testGetInputTransformNoCertSKI() throws Exception { KeyStoreEncryptionFactory factory = new KeyStoreEncryptionFactory(keystore, "masterkey2", keystorePassword.toCharArray(), provider); assertEquals("Wrong master key", "masterkey2", factory.getMasterEncryptionKeyAlias()); }