@Test public void testEncrypt() throws Exception {

	// Arrange:
	final Encrypto mockEncrypto = mock(Encrypto.class);
	when(mockEncrypto.encrypt("android".getBytes(Cryptography.CHARSET_NAME))).thenReturn("android".getBytes(Cryptography.CHARSET_NAME));
	// Act:
	final String encrypted = CryptographyUtils.encrypt("android", mockEncrypto);
	// Assert:
	assertThat(encrypted, is(Base64.encodeToString("android".getBytes(Cryptography.CHARSET_NAME), Base64.NO_WRAP)));
	verify(mockEncrypto).encrypt("android".getBytes(Cryptography.CHARSET_NAME));
}