Avoid unnessary construction of Strings in a unit test.