@Test
public void givenOneEmployee_whenGetEmployeeCount_thenReturnCorrectJson() throws Exception {

    when(presentationEmployeeRepository.getEmployeeCount()).thenReturn(1L);
    MvcResult mvcResult = mockMvc.perform(get("/employees/count").contentType(MediaType.APPLICATION_JSON))
            .andExpect(status().isOk())
            .andReturn();
    String actualResult = mvcResult.getResponse().getContentAsString();
    assertThat(actualResult).isEqualTo("1");
}