public int size() {
        return m.size();
    }
@Test
    public void testBasic() {
        FeatureMap fm = buildMap();
        FeatureMap otherFm = buildMap();

        assertEquals(fm, otherFm);

        int catCount = 0;
        int realCount = 0;
        for (VariableInfo i : fm) {
            if (i instanceof CategoricalInfo) {
                catCount++;
            } else if (i instanceof RealInfo) {
                realCount++;
            }
        }

        assertEquals(5,catCount);
        assertEquals(3,realCount);
        assertEquals(8,fm.size());

        ImmutableFeatureMap ifm = new ImmutableFeatureMap(fm);

        assertNotEquals(fm,ifm);
        assertEquals(8,ifm.size());
    }