in core/src/main/java/org/apache/sling/testing/mock/osgi/MockBundle.java [172:185]
private String relativeWithTrailingSlash(String queryPath) {
// make relative
if ( queryPath.startsWith("/")) {
queryPath = queryPath.substring(1, queryPath.length());
}
// remove trailing slash
if ( !queryPath.isEmpty() && !queryPath.endsWith("/") ) {
queryPath = queryPath +"/";
}
return queryPath;
}