@@ -0,0 +1,1030 @@
+package seedu.ezdo.storage;%0A%0Aimport java.io.File;%0A%0Aimport javax.xml.bind.JAXBException;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0Aimport org.junit.rules.ExpectedException;%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport seedu.ezdo.commons.util.XmlUtil;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(%7BXmlFileStorage.class, XmlUtil.class%7D)%0Apublic class XmlFileStorageTest %7B%0A    @Rule%0A    public ExpectedException thrown = ExpectedException.none();%0A%0A    @Test%0A    public void test() throws Exception %7B%0A        thrown.expect(AssertionError.class);%0A        PowerMockito.mockStatic(XmlUtil.class);%0A        File file = new File(%22omg%22);%0A        XmlSerializableEzDo ezDo = new XmlSerializableEzDo();%0A        PowerMockito.doThrow(new JAXBException(%22exception%22)).when(XmlUtil.class, %22saveDataToFile%22, file, ezDo);%0A        XmlFileStorage.saveDataToFile(file, ezDo);%0A    %7D%0A%0A%7D%0A

Add XmlFileStorageTest