void () { VirtualFile file = createVirtualFile("Foo.java", ""); TestCase.assertTrue("First set should change null to sample1", key.setPersistentValue(file, sample1)); TestCase.assertFalse("Second set should not change existing value", key.setPersistentValue(file, sample1)); TestCase.assertEquals(sample1, key.getPersistentValue(file)); TestCase.assertTrue("First set should change sample1 to sample2", key.setPersistentValue(file, sample2)); TestCase.assertFalse("Second set should not change existing value", key.setPersistentValue(file, sample2)); TestCase.assertEquals(sample2, key.getPersistentValue(file)); }