### Question:
UserProfileTypeService extends AbstractEntityTypeService<IUserProfile, UserProfileTypeDto> implements IUserProfileTypeService { @Override public PagedMetadata<EntityTypeShortDto> getShortUserProfileTypes(RestListRequest requestList) { return super.getShortEntityTypes(SystemConstants.USER_PROFILE_MANAGER, requestList); }  @Override PagedMetadata<EntityTypeShortDto> getShortUserProfileTypes(RestListRequest requestList); @Override UserProfileTypeDto getUserProfileType(String profileTypeCode); @Override UserProfileTypeDto addUserProfileType(ProfileTypeDtoRequest bodyRequest, BindingResult bindingResult); @Override UserProfileTypeDto updateUserProfileType(ProfileTypeDtoRequest request, BindingResult bindingResult); @Override void deleteUserProfileType(String profileTypeCode); @Override PagedMetadata<String> getAttributeTypes(RestListRequest requestList); @Override AttributeTypeDto getAttributeType(String attributeCode); @Override EntityTypeAttributeFullDto getUserProfileAttribute(String profileTypeCode, String attributeCode); @Override EntityTypeAttributeFullDto addUserProfileAttribute(String profileTypeCode, EntityTypeAttributeFullDto bodyRequest, BindingResult bindingResult); @Override EntityTypeAttributeFullDto updateUserProfileAttribute(String profileTypeCode, EntityTypeAttributeFullDto bodyRequest, BindingResult bindingResult); @Override void deleteUserProfileAttribute(String profileTypeCode, String attributeCode); @Override void moveUserProfileAttribute(String profileTypeCode, String attributeCode, boolean moveUp); @Override void reloadProfileTypeReferences(String profileTypeCode); @Override Map<String, Integer> reloadProfileTypesReferences(List<String> profileTypeCodes); @Override EntityTypesStatusDto getProfileTypesRefreshStatus();  }### Answer:
@Test public void testGetShortUserProfileTypesDefaultSort() { RestListRequest requestList = new RestListRequest(); PagedMetadata<EntityTypeShortDto> pagedMetadata = userProfileTypeService.getShortUserProfileTypes(requestList); List<EntityTypeShortDto> list = pagedMetadata.getBody(); assertEquals(3, list.size()); assertEquals("AAA", list.get(0).getCode()); assertEquals("BBB", list.get(1).getCode()); assertEquals("CCC", list.get(2).getCode()); }
@Test public void testGetShortUserProfileTypesSortByName() { RestListRequest requestList = new RestListRequest(); requestList.setSort("name"); PagedMetadata<EntityTypeShortDto> pagedMetadata = userProfileTypeService.getShortUserProfileTypes(requestList); List<EntityTypeShortDto> list = pagedMetadata.getBody(); assertEquals(3, list.size()); assertEquals("aaa", list.get(0).getName()); assertEquals("Bbb", list.get(1).getName()); assertEquals("ccc", list.get(2).getName()); }