I have a method that uses
public A setSomeProperties(){
//Call db repo
// call service
String a = aRepo.getValue();
BasicTextEncryptor b = new BasicTextEncryptor();
b.decrypt(a);
…
….
return new A();
}
So my issue is while writing junit test I am having issues with b.decrypt(a);
// org.jasypt.EncryptionOperationNotPossiblException
So I tried mocking BasicTextEncryptor but apparently its a final class so what would be my next step to fix this issue?