assertNotNull(serialized);
MuleEvent deserialized = (MuleEvent) trans.transform(serialized);
assertNotNull(deserialized);
Credentials credentials = deserialized.getCredentials();
assertNotNull(credentials);
assertEquals(username, credentials.getUsername());
assertTrue(Arrays.equals(password.toCharArray(), credentials.getPassword()));
}