245246247248249250251252253254255
// should be able to find it now that it was removed gm = m.getMetaData("foo"); assertNull(gm); // test add via update method m.updateMetadata(rm); gm = m.getMetaData("foo"); assertNotNull(gm); // test update of existing element rm.value = "bar2";
251252253254255256257258259260261
gm = m.getMetaData("foo"); assertNotNull(gm); // test update of existing element rm.value = "bar2"; m.updateMetadata(rm); gm = m.getMetaData("foo"); assertNotNull(gm); assertEquals("bar2", gm.value); }