@Test
public void addComparatorTListBoolean_true_true() {

	List<Integer> list = new ArrayList<>();
	list.addAll(Arrays.asList(1, 4, 6, 12, 30));
	
	assertEquals(0, ListUtil.add(list, new NaturalOrderComparator<Integer>(), -2, true, true));
	assertEquals(3, ListUtil.add(list, new NaturalOrderComparator<Integer>(), 4, true, true));
	assertEquals(6, ListUtil.add(list, new NaturalOrderComparator<Integer>(), 16, true, true));
	
	Iterator<Integer> iterator = list.iterator();
	assertEquals(Integer.valueOf(-2), iterator.next());
	assertEquals(Integer.valueOf(1), iterator.next());
	assertEquals(Integer.valueOf(4), iterator.next());
	assertEquals(Integer.valueOf(4), iterator.next());
	assertEquals(Integer.valueOf(6), iterator.next());
	assertEquals(Integer.valueOf(12), iterator.next());
	assertEquals(Integer.valueOf(16), iterator.next());
	assertEquals(Integer.valueOf(30), iterator.next());
	assertFalse(iterator.hasNext());
}