private ResourceMethodIdentifierGenerator() {
  }
@Test(dataProvider = "testData")
  public void testResourceMethodIdentifierGenerator(String baseUriTemplate, ResourceMethod method, String methodName,
      String expected) {
    final String resourceMethodIdentifier = ResourceMethodIdentifierGenerator.generate(baseUriTemplate, method, methodName);
    final String keylessRMI = ResourceMethodIdentifierGenerator.stripPathKeys(resourceMethodIdentifier);
    final String keylessBaseUriTemplate = ResourceMethodIdentifierGenerator.stripPathKeys(baseUriTemplate);

    Assert.assertEquals(resourceMethodIdentifier, expected, "ResourceMethodIdentifier is incorrect");
    Assert.assertFalse(keylessRMI.contains("{}"), "keylessRMI should not contain key pattern: " + keylessRMI);
    Assert.assertEquals(keylessRMI, resourceMethodIdentifier.replaceAll("/?\\{}", ""),
        "keylessRMI is incorrect for " + resourceMethodIdentifier);
    if (baseUriTemplate != null) {
      Assert.assertEquals(keylessBaseUriTemplate, baseUriTemplate.replaceAll("/?\\{[^}]*}", ""),
          "Keyless baseUriTemplate is incorrect for " + baseUriTemplate);
    } else {
      Assert.assertNull(keylessBaseUriTemplate);
    }
  }