FEELParser { public static boolean isVariableNameValid( String source ) { return checkVariableName( source ).isEmpty(); }  static FEEL_1_1Parser parse(FEELEventListenersManager eventsManager, String source, Map<String, Type> inputVariableTypes, Map<String, Object> inputVariables, Collection<FEELFunction> additionalFunctions, List<FEELProfile> profiles, FEELTypeRegistry typeRegistry); static boolean isVariableNamePartValid( String namePart, Scope scope ); static boolean isVariableNameValid( String source ); static List<FEELEvent> checkVariableName( String source ); static void defineVariables(Map<String, Type> inputVariableTypes, Map<String, Object> inputVariables, FEEL_1_1Parser parser);  }
@Test public void testVariableName() { String var = "valid variable name"; assertThat( FEELParser.isVariableNameValid( var ), is( true ) ); }
@Test public void testVariableNameWithValidCharacters() { String var = "?_873./-'+*valid"; assertThat( FEELParser.isVariableNameValid( var ), is( true ) ); }
@Test public void testVariableNameWithValidCharactersHorseEmoji() { String var = "🐎"; assertThat(FEELParser.isVariableNameValid(var), is(true)); }