### Question:
UserSearchAttributeConverter implements AttributeConverter { @Override public String convert(final String attribute) { return mapping.get(attribute); }  @Override String convert(final String attribute); @Override Map<String, TYPE> getValueTypeMapping();  }### Answer:
@Test public void convertFistName() throws Exception { String convert = converter.convert(UserItem.ATTRIBUTE_FIRSTNAME); assertEquals(UserSearchDescriptor.FIRST_NAME, convert); }
@Test public void convertLastName() throws Exception { String convert = converter.convert(UserItem.ATTRIBUTE_LASTNAME); assertEquals(UserSearchDescriptor.LAST_NAME, convert); }
@Test public void convertUserName() throws Exception { String convert = converter.convert(UserItem.ATTRIBUTE_USERNAME); assertEquals(UserSearchDescriptor.USER_NAME, convert); }
@Test public void convertGroupId() throws Exception { String convert = converter.convert(UserItem.FILTER_GROUP_ID); assertEquals(UserSearchDescriptor.GROUP_ID, convert); }
@Test public void convertManagerId() throws Exception { String convert = converter.convert(UserItem.ATTRIBUTE_MANAGER_ID); assertEquals(UserSearchDescriptor.MANAGER_USER_ID, convert); }
@Test public void convertRoleId() throws Exception { String convert = converter.convert(UserItem.FILTER_ROLE_ID); assertEquals(UserSearchDescriptor.ROLE_ID, convert); }