### Question:
ApplicationPageSearchDescriptorConverter implements AttributeConverter { @Override public String convert(final String attribute) { return MapUtil.getMandatory(mapping, attribute); } ApplicationPageSearchDescriptorConverter(); @Override String convert(final String attribute); @Override Map<String, ItemAttribute.TYPE> getValueTypeMapping();  }### Answer:
@Test public void should_return_ApplicationPageSearchDescriptor_id_on_convert_attribute_id() throws Exception { final String convertedValue = converter.convert(ApplicationPageItem.ATTRIBUTE_ID); assertThat(convertedValue).isEqualTo(ApplicationPageSearchDescriptor.ID); }
@Test public void should_return_ApplicationPageSearchDescriptor_name_on_convert_attribute_name() throws Exception { final String convertedValue = converter.convert(ApplicationPageItem.ATTRIBUTE_TOKEN); assertThat(convertedValue).isEqualTo(ApplicationPageSearchDescriptor.TOKEN); }
@Test public void should_return_ApplicationPageSearchDescriptor_applicationId_on_convert_attribute_applicationId() throws Exception { final String convertedValue = converter.convert(ApplicationPageItem.ATTRIBUTE_APPLICATION_ID); assertThat(convertedValue).isEqualTo(ApplicationPageSearchDescriptor.APPLICATION_ID); }
@Test public void should_return_ApplicationPageSearchDescriptor_pageId_on_convert_attribute_pageId() throws Exception { final String convertedValue = converter.convert(ApplicationPageItem.ATTRIBUTE_PAGE_ID); assertThat(convertedValue).isEqualTo(ApplicationPageSearchDescriptor.PAGE_ID); }