ConfigItemMapEntrySingleton implements ConfigItemMapEntry { public static ConfigItemMapEntrySingleton createSingleton(final String name, final ConfigBlock configBlock) { return new ConfigItemMapEntrySingleton(name, configBlock); } ConfigItemMapEntrySingleton(final String name, final ConfigBlock block); static ConfigItemMapEntrySingleton createSingleton(final String name,
                                                              final ConfigBlock configBlock); static ConfigItemMapEntrySingleton createSingleton(final ConfigBlock configBlock); @Override String getName(); @Override int size(); @Override boolean isEmpty(); @Override boolean add(final ConfigBlock block); @Override ConfigBlock put(final ConfigBlock block); boolean contains(final String name); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override Iterator<ConfigBlock> iterator(); @Override boolean add(final String name, final String type, final String value); ConfigBlock getByName(final String name); String set(final String name, final String value); String set(final String value);  }
@Test public void testCreateSingleton() { final ConfigItemMapEntrySingleton sing = ConfigItemMapEntrySingleton.createSingleton(this.item); Assert.assertEquals(1, sing.size()); Assert.assertFalse(sing.isEmpty()); Assert.assertNull(sing.getName()); }