assertEquals("hotel", style2.getProperty("echo"));
assertEquals("foxtrot", style1.getProperty("echo"));
}
public void testBasic() {
MutableStyle style = new MutableStyle();
assertEquals(0, style.size());
assertFalse(style.isPropertySet("alpha"));
assertNull(style.getProperty("alpha"));
style.setProperty("alpha", "bravo");
assertEquals(1, style.size());
assertTrue(style.isPropertySet("alpha"));
assertFalse(style.isPropertySet("bravo"));
style.setProperty("bravo", "charlie");
assertEquals(2, style.size());
assertEquals("bravo", style.getProperty("alpha"));
assertEquals("charlie", style.getProperty("bravo"));
style.setProperty("bravo", "delta");
assertEquals(2, style.size());
assertEquals("bravo", style.getProperty("alpha"));
assertEquals("delta", style.getProperty("bravo"));
style.setProperty("echo", "foxtrot");
style.setProperty("golf", "hotel");
style.setProperty("india", "juliet");
style.setProperty("kilo", "lima");
assertEquals(6, style.size());
assertEquals("juliet", style.getProperty("india"));
style.removeProperty("kilo");
assertEquals(5, style.size());
assertNull(style.getProperty("kilo"));
style.removeProperty("alpha");
assertEquals(4, style.size());
assertNull(style.getProperty("alpha"));
style.removeProperty("mike");
assertEquals(4, style.size());
style.removeProperty("echo");
style.removeProperty("golf");
style.removeProperty("india");
assertEquals(1, style.size());
style.removeProperty("bravo");
assertEquals(0, style.size());
}