@@ -0,0 +1,1893 @@
+package org.oddox.action.api;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNull;%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.io.IOException;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.MockitoAnnotations;%0Aimport org.oddox.config.AppConfig;%0Aimport org.oddox.config.Application;%0Aimport org.oddox.database.CouchDb;%0A%0A/**%0A * Unit tests for HealthAction%0A * %0A * @author amdelamar%0A * @since 1.0.0%0A */%0A@RunWith(JUnit4.class)%0Apublic class HealthActionTests %7B%0A%0A    @InjectMocks%0A    private HealthAction action;%0A%0A    @Before%0A    public void beforeEachTest() %7B%0A        MockitoAnnotations.initMocks(this);%0A        AppConfig config;%0A        try %7B%0A            config = Application.loadSettingsFromFile(Application.APP_PROP_FILE);%0A            Application.setAppConfig(config);%0A            Application.setDatabaseService(%0A                    new CouchDb(Application.loadDatabase(System.getenv(), Application.DB_PROP_FILE)));%0A        %7D catch (IOException e) %7B%0A            fail(%22Unexpected IOException: %22 + e.getMessage());%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void constructor() %7B%0A        assertTrue(action != null);%0A    %7D%0A%0A    @Test%0A    public void execute() %7B%0A        assertEquals(%22none%22, action.execute()%0A                .toLowerCase());%0A        assertTrue(action.getStatus()%0A                .containsKey(%22app%22));%0A    %7D%0A%0A    @Test%0A    public void variables() %7B%0A        action.setMessage(%22message%22);%0A        assertEquals(%22message%22, action.getMessage());%0A        action.setError(%22error%22);%0A        assertEquals(%22error%22, action.getError());%0A        action.setStatus(null);%0A        assertNull(action.getStatus());%0A%0A        action.setServletRequest(null);%0A        action.setServletResponse(null);%0A    %7D%0A%7D%0A

Add health check unit tests