CopyByReferenceContainer { public boolean contains(Class type) { return contains(type.getName()); }  void add(CopyByReference copyByReference); boolean contains(Class type); boolean contains(String typeName); @Override String toString();  }
@Test public void testContains() { container.add(new CopyByReference("java.util.*")); assertFalse(container.contains(String.class.getName())); assertTrue(container.contains(List.class.getName())); }