### Question:
DoubleMapGenotype extends DoubleGenotype implements MapGenotype<K, Double> { public void init(Random random) { super.init(random, keys.size()); } DoubleMapGenotype(List<K> keys, Bounds<Double> bounds); void init(Random random); @Override void init(Random random, int n); @Override boolean containsKey(K key); @Override Double getValue(K key); @Override void setValue(K key, Double value); @Override @SuppressWarnings({ "unchecked", "rawtypes" }) G newInstance(); @Override String toString(); @Override int getIndexOf(K key); @Override Collection<K> getKeys();  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testWrongInitCall() { List<MockObject> keys = new ArrayList<>(); MockObject m1 = new MockObject(1); MockObject m2 = new MockObject(2); keys.add(m1); keys.add(m2); DoubleBounds bounds = new DoubleBounds(lower2, upper); DoubleMapGenotype<MockObject> doubleMapGeno = new DoubleMapGenotype<>(keys, bounds); doubleMapGeno.init(new Random(), 10); }