LPS-45561 Use the already produced value instead of calling the util method again
LPS-45561 Adding new test case for this issue
LPS-45561 Small refactoring to test case