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

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