@Test
public void testClear() {

	int insertSize = 17;
	int boundSize = 5;
	Integer defaultElement = 4711;
	EvictingBoundedList<Integer> list = new EvictingBoundedList<>(boundSize, defaultElement);
	for (int i = 0; i < insertSize; ++i) {
		list.add(i);
	}
	list.clear();
	assertEquals(0, list.size());
	assertTrue(list.isEmpty());
	try {
		list.get(0);
		fail();
	} catch (IndexOutOfBoundsException ignore) {
	}
}