@Test
public void TestGetEtagForExistingPolicy() throws Exception, IOException {

    String expectedEtag = SignPoliciesUtility.signPolicies("./src/test/resources/unit_test_zts_private_k0.pem",
                "./src/test/resources/unit_test_zms_private_k0.pem", "./src/test/resources/sys.auth.pol",
                "./src/test/resources/sys.auth.new.pol");
    Map<String, String> newenv = new HashMap<String, String>();
    newenv.put("STARTUP_DELAY", Integer.toString(TEST_STARTUP_DELAY));
    setEnvironmentVar(newenv);
    PolicyUpdaterConfiguration configuration = new PolicyUpdaterConfiguration();
    configuration.init(pathToAthenzConfigFile, pathToZPUConfigFile);
    String matchingTag = PolicyUpdater.getEtagForExistingPolicy(null, configuration, "sys.auth.new");
    Assert.assertEquals(matchingTag, expectedEtag);
    
    matchingTag = PolicyUpdater.getEtagForExistingPolicy(null, configuration, "sys.auth.new");
    Assert.assertEquals(matchingTag, expectedEtag);
}