+
+ @Test
+ void getWelcomeResponseIsOkIfBackendHeaderDoesMatch(@Autowired MockMvc mvc) throws Exception
+ {
+ mvc
+ .perform(get("/")
+ .header(BACKEND_VERSION, projectVersion))
+ .andExpect(status().isOk());
+ }
+
+ @Test
+ void getWelcomeResponseIsGoneIfBackendHeaderDoesNotMatch(@Autowired MockMvc mvc) throws Exception
+ {
+ mvc
+ .perform(get("/")
+ .header(BACKEND_VERSION, "FOO"))
+ .andExpect(status().isGone());
+ }