@Test
public void testUpdateDomain() {

    File fileDir = new File("/home/athenz/zms_store");
    File quotaDir = new File("/home/athenz/zms_quota");
    try (FileConnection fileconnection = new FileConnection(fileDir, quotaDir)) {
        try {
            Domain domMock = Mockito.mock(Domain.class);
            Mockito.when(domMock.getName()).thenReturn("domain1");
            Mockito.when(fileconnection.getDomainStruct("domain1")).thenReturn(null);
            fail();
        } catch (Exception ex) {
            assertTrue(true);
        }
    }
}