@Test
public void testLoadAuthorities() {

    ZMSImpl zmsImpl = zmsInit();
    assertNull(zmsImpl.userAuthority);
    assertNull(zmsImpl.principalAuthority);
    // set the authority class properties
    System.setProperty(ZMSConsts.ZMS_PROP_AUTHORITY_CLASSES, ZMSConsts.ZMS_PRINCIPAL_AUTHORITY_CLASS);
    System.setProperty(ZMSConsts.ZMS_PROP_PRINCIPAL_AUTHORITY_CLASS, ZMSConsts.ZMS_PRINCIPAL_AUTHORITY_CLASS);
    System.setProperty(ZMSConsts.ZMS_PROP_USER_AUTHORITY_CLASS, ZMSConsts.ZMS_PRINCIPAL_AUTHORITY_CLASS);
    zmsImpl.loadAuthorities();
    assertNotNull(zmsImpl.userAuthority);
    assertNotNull(zmsImpl.principalAuthority);
    System.clearProperty(ZMSConsts.ZMS_PROP_AUTHORITY_CLASSES);
    System.clearProperty(ZMSConsts.ZMS_PROP_PRINCIPAL_AUTHORITY_CLASS);
    System.clearProperty(ZMSConsts.ZMS_PROP_USER_AUTHORITY_CLASS);
    zmsImpl.objectStore.clearConnections();
}