SelectMapGenotype extends IntegerGenotype implements MapGenotype<K, V> { public void init(Random random) { super.init(random, keys.size()); } SelectMapGenotype(List<K> keys, Map<K, List<V>> values);  SelectMapGenotype(List<K> keys, List<V> values); void init(Random random); @Override void init(Random random, int n); @Override boolean containsKey(K key); @Override int getIndexOf(K key); @Override V getValue(K key); @Override void setValue(K key, V value); @Override @SuppressWarnings({ "unchecked", "rawtypes" }) G newInstance(); @Override String toString(); @Override Collection<K> getKeys();  }
@Test(expected = UnsupportedOperationException.class) public void testListConstructor() { Inputs inputs = new Inputs(); SelectMapGenotype<Integer, Integer> genotype = new SelectMapGenotype<>(inputs.list, inputs.map.get(1)); Random rand = new Random(); genotype.init(rand, 2); }