@Test public void mustNotMatchWhenRegexIsValidAndThereIsNotAMatch() { assertFalse(Tools.regex("200", "404")); }
@Test(expected = IllegalArgumentException.class) public void mustNotMatchWhenRegexIsInvalidAndNotifyError() { Tools.regex("200", "40[]4"); fail("Should have thrown IAE as expression is invalid"); }
@Test public void mustMatchWhenRegexIsValidAndThereIsAMatch() { assertTrue(Tools.regex("200", "200")); }