msg = "Testing IPerson " + newPerson;
print(msg);
String testKey = randomStrings[0].toLowerCase();
// These tests should pass since the IPerson attribute exists.
IPersonTester tester1 = new ValueExistsTester(key1, testKey);
IPersonTester tester2 = new ValueExistsTester(key2, null);
// This test should fail; the IPerson does not have a value for key3.
IPersonTester tester3 = new ValueExistsTester(key3, new String());
msg = "Testing " + tester1;
assertTrue(msg, tester1.test(newPerson));
msg = "Testing " + tester2;
assertTrue(msg, tester2.test(newPerson));
msg = "Testing " + tester3;
assertFalse(msg, tester3.test(newPerson));
print("Success!");
print(CR + "***** LEAVING PAGSTester.testValueExistsTester() *****" + CR);
}