@Test public void verifyRegexService() { final RegexRegisteredService r = new RegexRegisteredService(); r.setId(10000); r.setName("regex test"); r.setServiceId("^http://www.test.edu.+"); r.setEvaluationOrder(10000); this.defaultServicesManagerImpl.save(r); final SimpleService service = new SimpleService("HTTP://www.TEST.edu/param=hello"); assertEquals(r, this.defaultServicesManagerImpl.findServiceBy(service)); }