@Test
public void testGetVersionShouldReturnVersionResponse() {

    //GIVEN
    given(titleProvider.getVersionTitle()).willReturn("version");
    //WHEN
    ResponseEntity<String> result = underTest.getVersion();
    //THEN
    assertEquals(result.getStatusCode(), HttpStatus.CREATED);
    assertEquals("{\"messageSearchVersion\":\"version\"}", result.getBody());
    assertEquals(MediaType.APPLICATION_JSON, result.getHeaders().getContentType());
}