Better to use testAttribute.getValue().equals("").