@Test
public void testEncryption() {

	final String password = "myPassword";
	Exception exception = null;
	String encryptedPassword1 = null,  encryptedPassword2 = null;
	
	try {
		encryptedPassword1 = GrapesAuthenticator.encrypt(password);
		encryptedPassword2 = GrapesAuthenticator.encrypt(password);
	} catch (Exception e) {
		exception = e;
	}
	
	assertNull(exception);
	assertNotNull(encryptedPassword1);
	assertFalse(password.equals(encryptedPassword1));
	assertNotNull(encryptedPassword2);
	assertEquals(encryptedPassword1, encryptedPassword2);
}