static boolean isALambdaClassByName(String name) {
    return LAMBDA_NAME_PATTERN.matcher(name.replace('/', '.')).matches();
  }
@Test
  public void testRegexForLambdaClassName() {
    String lambdaIdentifierInHotSpot = "HelloWorld$$Lambda$1";
    String lambdaIdentifierInZing = "HelloWorld$$Lambda$lambda$main$0$1310938867";

    assertTrue(isALambdaClassByName(lambdaIdentifierInHotSpot));
    assertTrue(isALambdaClassByName(lambdaIdentifierInZing));
  }