in src/main/java/org/apache/sling/hamcrest/matchers/ResourceNameMatcher.java [46:48]
protected void describeMismatchSafely(Resource resource, Description mismatchDescription) {
mismatchDescription.appendText("was Resource with name ").appendValue(resource.getName()).appendText(" (resource: ").appendValue(resource).appendText(")");
}