+
+ @Test
+ public void testCopy() {
+ testAdd();
+ assertEquals(2, config.values().size());
+ MyTypeConfig copy = new MyTypeConfig(config);
+ assertEquals(config.getId(), config.getId());
+ assertEquals(config, copy);
+
+ // verify the copy is not shallow
+ assertTrue(config.remove(new Id<MyType>("type1")));
+ assertEquals(1, config.values().size());
+ assertFalse(config.equals(copy));
+ }