### Question:
HCFailedItemOps implements FailedItemOps<IndexRequest> { @Override public FailedItemInfo createInfo(IndexRequest failed) { return new FailedItemInfo(failed.getIndex()); }  @Override FailedItemSource createItem(IndexRequest failed); @Override FailedItemInfo createInfo(IndexRequest failed);  }### Answer:
@Test public void createsFailedItemMetadata() { HCFailedItemOps failedItemOps = new HCFailedItemOps(); ItemSource<ByteBuf> itemSource = mock(ItemSource.class); ByteBuf expectedSource = mock(ByteBuf.class); when(itemSource.getSource()).thenReturn(expectedSource); String expectedIndex = UUID.randomUUID().toString(); IndexRequest request = createDefaultTestIndexRequest(itemSource, expectedIndex); FailedItemInfo result = failedItemOps.createInfo(request); assertEquals(expectedIndex, result.getTargetName()); }