private DefaultValueDTO createDefaultValue(final String type, final String value) {
    DefaultValueDTO defaultValueDTO = new DefaultValueDTO();
    defaultValueDTO.setType(type);
    defaultValueDTO.setValue(value);

    return defaultValueDTO;
  }
  /**
   * Tests creation and population of <code>DefaultValueDTO</code> object as a part of <code>
   * SettingDTO</code> state.
   */
  @Test
  public void testCreateDefaultValueDTO() {
    final SettingDefinition settingDefinition = context.mock(SettingDefinition.class);
    final String defaultValueType = DEFAULT_VALUE_TYPE;
    final String defaultValue = "storeassets";

    context.checking(
        new Expectations() {
          {
            oneOf(settingDefinition).getValueType();
            will(returnValue(defaultValueType));
            oneOf(settingDefinition).getDefaultValue();
            will(returnValue(defaultValue));
          }
        });

    DefaultValueDTO defaultValueDTO =
        settingDefinitionAdapter.createDefaultValueDTO(settingDefinition);

    assertEquals(defaultValue, defaultValueDTO.getValue());
    assertEquals(defaultValueType, defaultValueDTO.getType());
  }