final MountedMapper exactMount = new MountedMapper("/all/sindex", MockPage.class);
final MountedMapper requiredParam = new MountedMapper("/all/${exp}", MockPage.class);
final MountedMapper optionalParameter = new MountedMapper("/all/#{exp}", MockPage.class);
final MountedMapper requiredOptionalParam = new MountedMapper("/all/${exp}/#{opt}", MockPage.class);
Request request = getRequest(url);
final int exactCompatScore = exactMount.getCompatibilityScore(request);
final int requiredParamScore = requiredParam.getCompatibilityScore(request);
final int optCompatScore = optionalParameter.getCompatibilityScore(request);
final int requiredOptCompatScore = requiredOptionalParam.getCompatibilityScore(request);