@Test
public void testLoadServerPrivateKey() {

    // first we try with ec private key only
    System.setProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_EC_KEY, "src/test/resources/unit_test_zms_private.pem");
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_RSA_KEY);
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_KEY);
    zms.loadPrivateKeyStore();
    assertNotNull(zms.privateECKey);
    assertEquals(zms.privateKey, zms.privateECKey);
    assertNull(zms.privateRSAKey);
    // now let's try the rsa key
    System.setProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_RSA_KEY, "src/test/resources/unit_test_zms_private.pem");
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_EC_KEY);
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_KEY);
    zms.loadPrivateKeyStore();
    assertNotNull(zms.privateRSAKey);
    assertEquals(zms.privateKey, zms.privateRSAKey);
    assertNull(zms.privateECKey);
    // now back to our regular key setup
    System.setProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_KEY, "src/test/resources/unit_test_zms_private.pem");
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_EC_KEY);
    System.clearProperty(FilePrivateKeyStore.ATHENZ_PROP_PRIVATE_RSA_KEY);
    zms.loadPrivateKeyStore();
    assertNotNull(zms.privateKey);
    assertNull(zms.privateECKey);
    assertNull(zms.privateRSAKey);
}