### Question:
AbstractPutRecordsRequestTranslator { public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; }  List<PutRecordsRequestEntry> toEntries(List<T> items);  }### Answer:
@Test public void toEntries_GivenNullItems_ShouldReturnEmptyList() throws IOException { Assert.assertThat(translator.toEntries(null), Matchers.empty()); }
@Test public void toEntries_GivenEmptyList_ShouldReturnEmptyList() throws IOException { Assert.assertThat(translator.toEntries(Collections.emptyList()), Matchers.empty()); }