void () { Library a = createLibrary("a", null, null); Library b = createLibrary("b", null, null); assertSame(a, getProjectLibraryTable().getLibraryByName("a")); assertSame(b, getProjectLibraryTable().getLibraryByName("b")); Library.ModifiableModel bModel = b.getModifiableModel(); bModel.setName("c"); commit(bModel); Library.ModifiableModel aModel = a.getModifiableModel(); aModel.setName("b"); commit(aModel); assertNull(getProjectLibraryTable().getLibraryByName("a")); assertSame(a, getProjectLibraryTable().getLibraryByName("b")); assertSame(b, getProjectLibraryTable().getLibraryByName("c")); }