@@ -0,0 +1,848 @@
+package seedu.ezdo.commons.core;%0A%0Aimport java.io.IOException;%0Aimport java.util.logging.FileHandler;%0Aimport java.util.logging.Logger;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0Aimport mockit.Mock;%0Aimport mockit.MockUp;%0Aimport mockit.Verifications;%0Aimport mockit.integration.junit4.JMockit;%0A%0A//@@author A0139248X%0A@RunWith(JMockit.class)%0Apublic class LogsCenterTest %7B%0A%0A    @Test%0A    public void test() throws Exception %7B%0A        new MockUp%3CLogsCenter%3E()%0A        %7B%0A            @Mock%0A            FileHandler createFileHandler() throws IOException%0A            %7B%0A                throw new IOException();%0A            %7D%0A        %7D;%0A        Logger logger = LogsCenter.getLogger(%22test logger%22);%0A        new Verifications() %7B%0A            %7B%0A                logger.warning(%22Error adding file handler for logger.%22);%0A            %7D%0A        %7D;%0A    %7D%0A%7D%0A

Add LogsCenterTest