@Test
public void testCheckPassword() {

    boolean result = engineManager.checkPassword(ERROR, "user", "password");
    verify(engine, times(0)).checkPassword("user", "password");
    assertFalse(result);
    result = engineManager.checkPassword(engine.getEngineName(), "user", "password");
    verify(engine).checkPassword("user", "password");
    assertTrue(result);
}