public int size() {
        return data.size();
    }
@Test
    public void testLibSVMLoading() throws IOException {
        MockOutputFactory factory = new MockOutputFactory();
        URL dataFile = LibSVMDataSourceTest.class.getResource("/org/tribuo/datasource/test-1.libsvm");
        LibSVMDataSource<MockOutput> source = new LibSVMDataSource<>(dataFile,factory);

        MutableDataset<MockOutput> dataset = new MutableDataset<>(source);

        FeatureMap fmap = dataset.getFeatureMap();
        assertEquals(7,fmap.size());

        OutputInfo<MockOutput> info = dataset.getOutputInfo();
        assertEquals(2,info.size());
    }