NoopEncryptor implements Encryptor, java.io.Serializable { @Override public String encrypt(final String data) { return data; }  @Override String encrypt(final String data); @Override String decrypt(final String encryptedData);  }
@Test public void testEncrypt() { assertThat(noopEncryptor.encrypt(testMessage), is(testMessage)); }
@Test public void testEncryptNull() { assertThat(noopEncryptor.encrypt(null), is(nullValue())); }