@Test public void testEncryptWithIllegalBlockSize() throws Exception {

	// Arrange:
	final KeyGenerator keyGenerator = KeyGenerator.getInstance("AES");
	keyGenerator.init(128);
	final Key key = keyGenerator.generateKey();
	final Encrypto encrypto = new CipherEncrypto.Builder()
			.cipher(new CipherBuilder()
					.transformation(CipherCryptography.createTransformation(
							CipherCryptography.Algorithm.AES,
							CipherCryptography.Mode.ECB,
							CipherCryptography.Padding.NO
					))
					.opMode(Cipher.ENCRYPT_MODE)
					.key(key)
					.build()
			)
			.build();
	try {
		// Act:
		encrypto.encrypt("Android".getBytes(Cryptography.CHARSET_NAME));
	} catch (CryptographyException e) {
		// Assert:
		assertThat(e.getCause(), instanceOf(IllegalBlockSizeException.class));
		return;
	}
	throw new AssertionError("No exception thrown when expected one.");
}