### Question:
MediaItemHandler { protected List<String> getRequestMediaItemIds(SocialRequestItem request) { List<String> ids = request.getListParameter("id"); if (ids.isEmpty()) { ids = request.getListParameter("mediaItemId"); } return ids; } @Inject  MediaItemHandler(
      MediaItemService service, ContainerConfig config,
      CollectionOptionsFactory collectionOptionsFactory); @Operation(httpMethods = "GET") Future<?> get(SocialRequestItem request); @Operation(httpMethods = "DELETE") Future<?> delete(SocialRequestItem request); @Operation(httpMethods = "POST", bodyParam = "data") Future<?> create(SocialRequestItem request); @Operation(httpMethods = "PUT", bodyParam = "data") Future<?> update(SocialRequestItem request); @Operation(httpMethods = "GET", path = "/@supportedFields") List<Object> supportedFields(RequestItem request);  }### Answer:
@Test public void testGetRequestMediaItemIds() { List<String> expectedMediaItemIds = Arrays.asList("mediaItemId1"); request.setParameter("mediaItemId", expectedMediaItemIds); assertEquals(expectedMediaItemIds, handler.getRequestMediaItemIds(request)); List<String> expectedIds = Arrays.asList("id1"); request.setParameter("id", expectedIds); assertEquals(expectedIds, handler.getRequestMediaItemIds(request)); }