@Before public void setup() { this.mockMvc = MockMvcBuilders.webAppContextSetup(wac).build(); elasticsearchAdminService.recreateAllIndices(); }