@Test
public void encodePasswordWithSaltTest() throws EncodingException, DecodingException {

    resetVerifyMockObject();
    final String salt = "testSalt";
    String result = passwordEncoder.encode(password, salt);
    assertNotEquals(result, null);
    assertEquals(result, charSequenceEncodePassword);
    verify(encoder, times(1)).encode(anyObject());
    verify(charSequenceCodec, times(1)).encode(password + "{" + salt + "}");
    verify(charSequenceCodec).decode(eq(encodePassword.getBytes()));
}