@@ -0,0 +1,2737 @@
+package org.cache2k.test;%0A%0A/*%0A * #%25L%0A * cache2k API%0A * %25%25%0A * Copyright (C) 2000 - 2018 headissue GmbH, Munich%0A * %25%25%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *      http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * #L%25%0A */%0A%0Aimport org.cache2k.configuration.CustomizationCollection;%0Aimport org.cache2k.configuration.CustomizationSupplier;%0Aimport org.cache2k.configuration.CustomizationSupplierByClassName;%0Aimport org.cache2k.configuration.DefaultCustomizationCollection;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * @author Jens Wilke%0A */%0Apublic class DefaultCustomizationCollectionTest %7B%0A%0A  CustomizationCollection%3CObject%3E collection = new DefaultCustomizationCollection%3CObject%3E();%0A%0A  @Test%0A  public void initial() %7B%0A    assertEquals(0, collection.size());%0A    assertTrue(collection.isEmpty());%0A    assertFalse(collection.iterator().hasNext());%0A    assertEquals(0, collection.toArray().length);%0A    assertEquals(0, collection.toArray(new CustomizationSupplier%5B0%5D).length);%0A    assertFalse(collection.contains(this));%0A    assertFalse(collection.remove(this));%0A    collection.clear();%0A  %7D%0A%0A  @Test%0A  public void addOne_remove() %7B%0A    CustomizationSupplier s = new CustomizationSupplierByClassName(%22dummy%22);%0A    collection.add(s);%0A    assertEquals(1, collection.size());%0A    assertFalse(collection.isEmpty());%0A    assertTrue(collection.iterator().hasNext());%0A    assertEquals(1, collection.toArray().length);%0A    assertEquals(1, collection.toArray(new CustomizationSupplier%5B0%5D).length);%0A    assertFalse(collection.contains(this));%0A    assertFalse(collection.remove(this));%0A    collection.clear();%0A    assertTrue(collection.isEmpty());%0A  %7D%0A%0A  @Test(expected = IllegalArgumentException.class)%0A  public void addOneDouble() %7B%0A    CustomizationSupplier s = new CustomizationSupplierByClassName(%22dummy%22);%0A    collection.add(s);%0A    collection.add(s);%0A  %7D%0A%0A  @Test%0A  public void addAll_retainAll_removeAll() %7B%0A    CustomizationSupplier s = new CustomizationSupplierByClassName(%22dummy%22);%0A    CustomizationCollection%3CObject%3E col2 = new DefaultCustomizationCollection%3CObject%3E();%0A    col2.add(s);%0A    collection.addAll(col2);%0A    assertTrue(collection.containsAll(col2));%0A    assertFalse(collection.retainAll(col2));%0A    assertTrue(collection.removeAll(col2));%0A  %7D%0A%0A%7D%0A

improve test coverage