@Test
 public void testGetTranslations() throws Exception {
   MockHttpServletResponse response = new MockHttpServletResponse();
   translationController.getTranslations(Locale.ENGLISH, response);
   assertThat(response.getStatus(), is(200));
   assertThat(response.getContentAsString(), isNotEmpty());
 }
  @Test
  public void testSetTranslations() throws Exception {
    MockHttpServletRequest request = new MockHttpServletRequest();
    MockHttpServletResponse response = new MockHttpServletResponse();
    translationController.setLocale(Locale.ENGLISH, request, response, () -> "admin");

    verify(credentialRepository, atLeastOnce()).findByEmail("admin");
    verify(localeResolver, atLeastOnce()).setLocale(request, response, Locale.ENGLISH);
  }