String msg = "Test Message";
MuleEvent event = (DefaultMuleEvent) getTestEvent(msg, getTestService("orange", Orange.class));
event = RequestContext.setEvent(event);
EncryptionTransformer etrans = new EncryptionTransformer();
etrans.setStrategy(kbStrategy);
Object result = etrans.doTransform(msg.getBytes(), "UTF-8");
assertNotNull(result);
InputStream inputStream = (InputStream) result;
String message = IOUtils.toString(inputStream);
String encrypted = (String) new ByteArrayToObject().doTransform(message.getBytes(), "UTF-8");