public void testSet() {
try {
accessor.set(feature, "foo", Integer.valueOf(2), null);
} catch (IllegalAttributeException e) {
fail();
}
assertEquals(Integer.valueOf(2), accessor.get(feature, "foo", null));
try {
accessor.set(feature, "bar", new Double(1.0), null);
} catch (IllegalAttributeException e) {
fail();
}
assertEquals(new Double(1.0), accessor.get(feature, "bar", null));
try {
accessor.set(feature, "@id", "fid2", null);
fail("Should have thrown exception trying to set fid");
} catch (IllegalAttributeException e) {
}
}