public final void testRegexWithCharSequenceParameter(){
  assertNotNull(Validators.regex("foo",Pattern.compile(".")));
}

public final void testRegexWithCharSequenceParameter ( ) { assertNotNull ( Validators . regex ( "foo" , Pattern . compile ( "." ) ) ) ; }
tests the functionality of the regex - method , which expects a char sequence as a parameter .
