### Question:
ApplicationSearchDescriptorConverter implements AttributeConverter { @Override public String convert(final String attribute) { return MapUtil.getMandatory(mapping, attribute); } ApplicationSearchDescriptorConverter(); @Override String convert(final String attribute); @Override Map<String, ItemAttribute.TYPE> getValueTypeMapping();  }### Answer:
@Test public void should_return_ApplicationSearchDescriptor_id_on_convert_attribute_id() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_ID); assertThat(value).isEqualTo(ApplicationSearchDescriptor.ID); }
@Test public void should_return_ApplicationSearchDescriptor_name_on_convert_attribute_name() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_TOKEN); assertThat(value).isEqualTo(ApplicationSearchDescriptor.TOKEN); }
@Test public void should_return_ApplicationSearchDescriptor_name_on_convert_attribute_displayName() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_DISPLAY_NAME); assertThat(value).isEqualTo(ApplicationSearchDescriptor.DISPLAY_NAME); }
@Test public void should_return_ApplicationSearchDescriptor_version_on_convert_attribute_version() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_VERSION); assertThat(value).isEqualTo(ApplicationSearchDescriptor.VERSION); }
@Test public void should_return_ApplicationSearchDescriptor_iconPath_on_convert_attribute_iconPath() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_ICON_PATH); assertThat(value).isEqualTo(ApplicationSearchDescriptor.ICON_PATH); }
@Test public void should_return_ApplicationSearchDescriptor_creationDate_on_convert_attribute_creationDate() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_CREATION_DATE); assertThat(value).isEqualTo(ApplicationSearchDescriptor.CREATION_DATE); }
@Test public void should_return_ApplicationSearchDescriptor_createdBy_on_convert_attribute_createdBy() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_CREATED_BY); assertThat(value).isEqualTo(ApplicationSearchDescriptor.CREATED_BY); }
@Test public void should_return_ApplicationSearchDescriptor_lastUpdateDate_on_convert_attribute_lastUpdateDate() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_LAST_UPDATE_DATE); assertThat(value).isEqualTo(ApplicationSearchDescriptor.LAST_UPDATE_DATE); }
@Test public void should_return_ApplicationSearchDescriptor_updatedBy_on_convert_attribute_updatedBy() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_UPDATED_BY); assertThat(value).isEqualTo(ApplicationSearchDescriptor.UPDATED_BY); }
@Test public void should_return_ApplicationSearchDescriptor_state_on_convert_attribute_state() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_STATE); assertThat(value).isEqualTo(ApplicationSearchDescriptor.STATE); }
@Test public void should_return_ApplicationSearchDescriptor_layoutid_on_convert_attribute_layoutid() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_LAYOUT_ID); assertThat(value).isEqualTo(ApplicationSearchDescriptor.LAYOUT_ID); }
@Test public void should_return_ApplicationSearchDescriptor_themeid_on_convert_attribute_themeid() throws Exception { final String value = converter.convert(ApplicationItem.ATTRIBUTE_THEME_ID); assertThat(value).isEqualTo(ApplicationSearchDescriptor.THEME_ID); }