@Override
   public String evaluate(EvaluationContext evaluationContext, String... args) {
      if (args != null && args.length == 1) {
         int maxLength = DEFAULT_LENGTH;
         try {
            maxLength = Integer.parseInt(args[0]);
         } catch (NumberFormatException nfe) {
            // Ignore, we'll stick to the default.
         }
         return generateString(getRandom(), maxLength);
      }
      return generateString(getRandom(), DEFAULT_LENGTH);
   }
@Test
   void testCustomSizeEvaluation() {
      // Compute evaluation.
      RandomStringELFunction function = new RandomStringELFunction();
      String result = function.evaluate(null, "64");

      assertEquals(64, result.length());
   }