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

public final void testRegexWithContextParameter ( ) { assertNotNull ( Validators . regex ( getContext ( ) , Pattern . compile ( "." ) ) ) ; }
tests the functionality of the regex - method , which expects a context as a parameter .
