securityContext.setAuthentications("token", authentications);
InternalFeature feature = new InternalFeatureImpl();
Map<String, Attribute> attributes = new HashMap<String, Attribute>();
feature.setAttributes(attributes);
attributes.put(ATTRIBUTE_ID, new StringAttribute("bla"));
Assert.assertTrue(securityContext.isAttributeReadable(LAYER_ID, feature, ATTRIBUTE_ID));
Assert.assertTrue(securityContext.isAttributeWritable(LAYER_ID, feature, ATTRIBUTE_ID));
feature.getAttributes().put(ATTRIBUTE_ID, new StringAttribute("rea"));
Assert.assertFalse(securityContext.isAttributeReadable(LAYER_ID, feature, ATTRIBUTE_ID));
Assert.assertTrue(securityContext.isAttributeWritable(LAYER_ID, feature, ATTRIBUTE_ID));
feature.getAttributes().put(ATTRIBUTE_ID, new StringAttribute("wri"));
Assert.assertTrue(securityContext.isAttributeReadable(LAYER_ID, feature, ATTRIBUTE_ID));
Assert.assertFalse(securityContext.isAttributeWritable(LAYER_ID, feature, ATTRIBUTE_ID));
}