@Test
public void testSetupDomainFileException() throws IOException {

    ZMSFileChangeLogStoreCommon fstore = new ZMSFileChangeLogStoreCommon(FSTORE_PATH);
    FilesHelper helper = Mockito.mock(FilesHelper.class);
    Mockito.doThrow(new IOException("io exception")).when(helper).createEmptyFile(Mockito.any());
    fstore.filesHelper = helper;
    try {
        File file = new File(FSTORE_PATH, "domain");
        fstore.setupDomainFile(file);
        fail();
    } catch (Exception ex) {
        assertTrue(true);
    }
}