### Question:
Record implements Iterable<Entry> { public Entry get(int index) { return this.entries.get(index); } Record();  Record(final String uuid, final String feedName); String getUuid(); String getFeedName(); void setFeedName(final String feedName); void add(Entry entry); void add(Entry... entries); int size(); Entry get(int index); @Override Iterator<Entry> iterator();  }### Answer:
@Test public void testGetByValidIndex() { assertEquals("exceptionally.excellent.value", record.get(1).getValue()); }
@Test(expected = IndexOutOfBoundsException.class) public void testGetByInvalidIndex() { record.get(5); }