### Question:
ApplicationMenuSearchDescriptorConverter implements AttributeConverter { @Override public String convert(final String attribute) { return MapUtil.getMandatory(mapping, attribute); } ApplicationMenuSearchDescriptorConverter(); @Override String convert(final String attribute); @Override Map<String, ItemAttribute.TYPE> getValueTypeMapping();  }### Answer:
@Test public void should_return_ApplicationMenuSearchDescriptor_id_on_convert_attribute_id() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_ID); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.ID); }
@Test public void should_return_ApplicationMenuSearchDescriptor_display_name_on_convert_attribute_display_name() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_DISPLAY_NAME); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.DISPLAY_NAME); }
@Test public void should_return_ApplicationMenuSearchDescriptor_applicationPageId_on_convert_attribute_applicationPageId() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_APPLICATION_PAGE_ID); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.APPLICATION_PAGE_ID); }
@Test public void should_return_ApplicationMenuSearchDescriptor_applicationId_on_convert_attribute_applicationId() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_APPLICATION_ID); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.APPLICATION_ID); }
@Test public void should_return_ApplicationMenuSearchDescriptor_index_on_convert_attribute_menu_index() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_MENU_INDEX); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.INDEX); }
@Test public void should_return_ApplicationMenuSearchDescriptor_index_on_convert_attribute_parent_menu() throws Exception { final String convertedValue = converter.convert(ApplicationMenuItem.ATTRIBUTE_PARENT_MENU_ID); assertThat(convertedValue).isEqualTo(ApplicationMenuSearchDescriptor.PARENT_ID); }