public ClaimEntity create(ClaimEntity entity) {
if (isBillEstimationActive) {
return be_save(entity, BE_INSERT, new GeneratedKeyHolder());
}
return save(entity, INSERT, new GeneratedKeyHolder());
}
And the boolean variable is been set at the beginning of the class
private boolean isBillEstimationActive = false;
I want to call be_save and it won't be called until and unless it's the value of bool is true. How should I achieve it in my test case.