@@ -0,0 +1,1829 @@
+package fi.jgke.tagger.controller;%0A%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport fi.jgke.tagger.domain.Tag;%0Aimport fi.jgke.tagger.domain.Type;%0Aimport fi.jgke.tagger.repository.TagRepository;%0Aimport fi.jgke.tagger.repository.TypeRepository;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.UUID;%0Aimport java.util.stream.Collectors;%0Aimport javax.transaction.Transactional;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.http.MediaType;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.MvcResult;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;%0Aimport org.springframework.test.web.servlet.setup.MockMvcBuilders;%0Aimport org.springframework.web.context.WebApplicationContext;%0A%0A@RunWith(SpringRunner.class)%0A@WebAppConfiguration%0A@SpringBootTest%0A@Transactional%0Apublic class HealthTest %7B%0A%0A    @Autowired%0A    private WebApplicationContext webAppContext;%0A    private MockMvc mockMvc;%0A%0A    @Before%0A    public void setUp() %7B%0A        this.mockMvc = MockMvcBuilders.webAppContextSetup(webAppContext).build();%0A    %7D%0A%0A    @Test%0A    public void isHealthy() throws Exception %7B%0A        mockMvc.perform(get(%22/health%22))%0A                .andExpect(content().contentType(%22application/hal+json;charset=UTF-8%22))%0A                .andExpect(jsonPath(%22$.version%22).exists())%0A                .andExpect(jsonPath(%22$.healthy%22).value(true));%0A%0A    %7D%0A%7D%0A

Add simple test for /health