  @Test
  public void testURIWithDBInPerDbPolicyFile() throws Exception {

    DatabaseRequiredInRole dbRequiredInRole = new DatabaseRequiredInRole();
    try {
      dbRequiredInRole.validate("db1",
        "server=server1->db=db1->URI=file:///user/hive/warehouse/tab1");
      Assert.fail("Expected ConfigurationException");
    } catch (ConfigurationException e) {
      ;
    }
  }