@Test
public void testClone() throws Exception {

    String prefix = LogManagerPropertiesTest.class.getName();
    Properties parent;
    LogManagerProperties mp;
    LogManager manager = LogManager.getLogManager();
    try {
        String key = prefix.concat(".dummy");
        parent = new Properties();
        parent.put(key, "value");
        read(manager, parent);
        parent = new Properties();
        mp = new LogManagerProperties(parent, prefix);
        assertFalse(contains(mp, key, null));
        assertEquals("value", mp.getProperty(key));
        assertTrue(contains(mp, key, "value")); //ensure copy worked.
    } finally {
        manager.reset();
    }
    Properties clone = (Properties) mp.clone();
    assertFalse(clone instanceof LogManagerProperties);
    assertEquals(Properties.class, clone.getClass());
    assertNotSame(clone, parent);
    assertNotSame(clone, mp);
    assertEquals(mp.size(), clone.size());
    assertTrue(clone.equals(mp)); //don't call mp.equals.
}