@Test
public void testGetServerSignedDomain() {

    MockZMSFileChangeLogStore fstore = new MockZMSFileChangeLogStore(FSTORE_PATH, null, null);
    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("athenz", null, null, null)).thenReturn(domainList);
    SignedDomain signedDomain = fstore.getServerSignedDomain("athenz");
    assertNotNull(signedDomain);
    assertEquals(signedDomain.getDomain().getName(), "athenz");
    // invalid domain should return null
    assertNull(fstore.getServerSignedDomain("coretech"));
}