public class FeatureMapTest {
@Test
public void testMap() {
final FeatureMap map = new FeatureMap();
map.putFeature(Name.First, "Homer");
map.putFeature(Name.Last, "Simpson");
assert map.getFeature(Name.First).equals("Homer");
assert map.getFeature(Name.Last).equals("Simpson");
assert map.getFeatureKeys().size() == 2;
assert map.getFeatureKeys().contains(Name.First);
assert map.getFeatureKeys().contains(Name.Last);
assert map.removeFeature(Name.First).equals("Homer");
assert map.getFeature(Name.First) == null;
assert map.getFeatureKeys().size() == 1;
assert map.getFeatureKeys().contains(Name.Last);
}