### Question:
EntryIndexFile implements Iterable<EntryIndexItem> { public int getMinEntryIndex() { checkEmpty(); return minEntryIndex; } EntryIndexFile(File file);  EntryIndexFile(SeekableFile seekableFile); boolean isEmpty(); int getMinEntryIndex(); int getMaxEntryIndex(); int getEntryIndexCount(); void appendEntryIndex(int index, long offset, int kind, int term); void clear(); void removeAfter(int newMaxEntryIndex); long getOffset(int entryIndex); @Nonnull EntryIndexItem get(int entryIndex); @Override @Nonnull Iterator<EntryIndexItem> iterator(); void close();  }### Answer:
@Test(expected = IllegalStateException.class) public void testGetMinEntryIndexEmpty() throws IOException { EntryIndexFile file = new EntryIndexFile(new ByteArraySeekableFile()); file.getMinEntryIndex(); }