@Test
public void testGetServerDomainModifiedList() throws InterruptedException, IOException, KeyRefresherException {

    ZMSFileMTLSChangeLogStore fstore = new ZMSFileMTLSChangeLogStore(FSTORE_PATH, keyPath, certPath,
            trustStorePath, trustStorePassword);
    ZMSClient zmsClient = Mockito.mock(ZMSClient.class);
    fstore.setZMSClient(zmsClient);
    List<SignedDomain> domains = new ArrayList<>();
    DomainData domData = new DomainData().setName("athenz");
    SignedDomain domain = new SignedDomain().setDomain(domData);
    domains.add(domain);
    SignedDomains domainList = new SignedDomains().setDomains(domains);
    Mockito.when(zmsClient.getSignedDomains(null, "true", null, null)).thenReturn(domainList);
    SignedDomains returnList = fstore.getServerDomainModifiedList();
    assertEquals(returnList.getDomains().size(), 1);
    assertEquals(returnList.getDomains().get(0).getDomain().getName(), "athenz");
}