@Test
public void testCheckPasswordWithoutEncryption() {

    // Setup:
    when(encryptionSupport.getEncryption()).thenReturn(null);
    boolean result = engine.checkPassword(username, password);
    assertTrue(result);
    result = engine.checkPassword(username, "password");
    assertFalse(result);
}