core: use JUnit 4 syntax in RegexTest

Change-Id: I4633091a1b929af23fea333f2a1fa661b83bc575
Signed-off-by: Allon Mureinik <amureini@redhat.com>