/**
* test method getProperty(String)
*
*/
public void test_getProperty() {
MidiFileFormat format = new MidiFileFormat(1, 2.0f, 3, 4, 5L);
assertNull(format.getProperty("name"));
Map<String, Object> table = new Hashtable<String, Object>();
table.put("first", "one");
table.put("second", "two");
format = new MidiFileFormat(1, 2.0f, 3, 4, 5L, table);
assertNull(format.getProperty(null));
assertNull(format.getProperty("third"));
assertEquals("one", format.getProperty("first"));
assertEquals("two", format.getProperty("second"));
table.put("first", "not one");
table.put("second", "not two");
/*
* values don't change!!!
*/
assertEquals("one", format.getProperty("first"));
assertEquals("two", format.getProperty("second"));
}