@Test(expected = IllegalArgumentException.class) public void empty_list_throws_exception() { this.list.clear(); this.strategy.get(this.list); }
@Override public <T> T get(List<T> list) { int index = random.nextInt(list.size()); return list.get(index); }
RandomElementStrategy implements ElementFromListStrategy { @Override public <T> T get(List<T> list) { int index = random.nextInt(list.size()); return list.get(index); } }
RandomElementStrategy implements ElementFromListStrategy { @Override public <T> T get(List<T> list) { int index = random.nextInt(list.size()); return list.get(index); }  }
RandomElementStrategy implements ElementFromListStrategy { @Override public <T> T get(List<T> list) { int index = random.nextInt(list.size()); return list.get(index); }  @Override T get(List<T> list); }
RandomElementStrategy implements ElementFromListStrategy { @Override public <T> T get(List<T> list) { int index = random.nextInt(list.size()); return list.get(index); }  @Override T get(List<T> list);  }