@Test
public void testRegexGrouping() {

  NfsExports matcher = new NfsExports(CacheSize, ExpirationPeriod,
      "192.168.0.(12|34)");
  Assert.assertEquals(AccessPrivilege.READ_ONLY,
      matcher.getAccessPrivilege(address1, hostname1));
  // address1 will hit the cache
  Assert.assertEquals(AccessPrivilege.READ_ONLY,
      matcher.getAccessPrivilege(address1, hostname2));
  matcher = new NfsExports(CacheSize, ExpirationPeriod, "\\w*.a.b.com");
  Assert.assertEquals(AccessPrivilege.READ_ONLY,
      matcher.getAccessPrivilege("1.2.3.4", "web.a.b.com"));
  // address "1.2.3.4" will hit the cache
  Assert.assertEquals(AccessPrivilege.READ_ONLY,
      matcher.getAccessPrivilege("1.2.3.4", "email.a.b.org"));
}