String pattern4 = "*" + shortenName + "*";
String assertString4 = "node.getProperties(\"" + pattern4 + "\"): ";
// test if the names of the found properties are matching the pattern
PropertyIterator properties4 = node.getProperties(pattern4);
while (properties4.hasNext()) {
Property p = properties4.nextProperty();
assertTrue(assertString4 + "name comparison failed: *" +
shortenName + "* not found in " + p.getName(),
p.getName().indexOf(shortenName) != -1);
}
// test if the number of found properties is correct