public class RegexFunctionTest {
@Test
public void regexString() {
String pattern = "\\w{8}";
String value = new RegexFunction(pattern).generateValue();
assertNotNull("Generated string can not be null", value);
assertTrue(String.format("Generated string no match with %s", pattern), value.matches(pattern));
}