### Question:
NoOpEncrypter implements OAuth2Encrypter { public byte[] decrypt(final byte[] encryptedSecret) throws OAuth2EncryptionException { return encryptedSecret; } @Inject  NoOpEncrypter(); byte[] decrypt(final byte[] encryptedSecret); byte[] encrypt(final byte[] plainSecret);  }### Answer:
@Test public void testDecrypt_1() throws Exception { final NoOpEncrypter fixture = new NoOpEncrypter(); final String encryptedSecret = "secretin"; final byte[] bytes = fixture.decrypt(encryptedSecret.getBytes("UTF-8")); final String result = new String(bytes, "UTF-8"); Assert.assertEquals("secretin", result); }
@Test public void testDecrypt_2() throws Exception { final NoOpEncrypter fixture = new NoOpEncrypter(); final byte[] result = fixture.decrypt(null); Assert.assertEquals(null, result); }
@Test public void testDecrypt_3() throws Exception { final NoOpEncrypter fixture = new NoOpEncrypter(); final String encryptedSecret = ""; final byte[] bytes = fixture.decrypt(encryptedSecret.getBytes("UTF-8")); final String result = new String(bytes, "UTF-8"); Assert.assertEquals("", result); }