@Test public void getCurrentLocale_ShouldReturnCorrectLocale() { PowerMockito.mockStatic(LocaleContextHolder.class); when(LocaleContextHolder.getLocale()).thenReturn(Locale.US); Locale currentLocale = localeContextHolderWrapper.getCurrentLocale(); PowerMockito.verifyStatic(times(1)); LocaleContextHolder.getLocale(); assertEquals(Locale.US, currentLocale); }
public Locale getCurrentLocale() { LOGGER.debug("Getting current locale"); return LocaleContextHolder.getLocale(); }
LocaleContextHolderWrapper { public Locale getCurrentLocale() { LOGGER.debug("Getting current locale"); return LocaleContextHolder.getLocale(); } }
LocaleContextHolderWrapper { public Locale getCurrentLocale() { LOGGER.debug("Getting current locale"); return LocaleContextHolder.getLocale(); }  }
LocaleContextHolderWrapper { public Locale getCurrentLocale() { LOGGER.debug("Getting current locale"); return LocaleContextHolder.getLocale(); }  Locale getCurrentLocale(); }
LocaleContextHolderWrapper { public Locale getCurrentLocale() { LOGGER.debug("Getting current locale"); return LocaleContextHolder.getLocale(); }  Locale getCurrentLocale();  }