in src/main/java/org/apache/sling/commons/testing/jcr/MockNode.java [186:199]
public PropertyIterator getProperties(String namePattern) throws RepositoryException {
PropertyIterator iterator = getProperties();
List<Property> properties = new ArrayList<Property>();
while (iterator.hasNext()) {
Property p = iterator.nextProperty();
String name = p.getName();
if (ChildrenCollectorFilter.matches(name, namePattern)) {
properties.add(p);
}
}
return new MockPropertyIterator(properties.iterator());
}