/** Tests populateDumainNameValues. */
  @Test(expected = PopulationRuntimeException.class)
  public void testPopulateDomainNameValues() {
    final Category mockCategory = context.mock(Category.class);
    final LocaleDependantFields mockDependantFields = context.mock(LocaleDependantFields.class);

    Map<Locale, LocaleDependantFields> localeDependantFieldsMap =
        new HashMap<Locale, LocaleDependantFields>();

    final CategoryDTO categoryDto = new CategoryDTO();
    categoryDto.setNameValues(Arrays.asList(DISPLAY_VALUE_EN_LOCALE, DISPLAY_VALUE_ZUZU_LOCALE));

    context.checking(
        new Expectations() {
          {
            oneOf(mockCategory).getLocaleDependantFieldsWithoutFallBack(LOCALE_EN);
            will(returnValue(mockDependantFields));

            oneOf(mockDependantFields).setDisplayName(DISPLAY_VALUE_EN_LOCALE.getValue());
          }
        });

    localeDependantFieldsMap.put(LOCALE_EN, mockDependantFields);

    // oneOf(mockCategory).setLocaleDependantFieldsMap(localeDependantFieldsMap);

    categoryAdapter.populateDomainNameValues(mockCategory, categoryDto);
  }