public void testConstructEmptyInstance1()
{
WekaDataCollector classifier = new WekaDataCollector();
classifier.initialise("TestCreateInstances2", 10, new ArrayList<PairRank>(),0);
Instance instance = classifier.constructInstance(new int []{},false);
Assert.assertFalse(instance.classIsMissing());Assert.assertEquals(1,instance.numValues());
Assert.assertFalse(instance.hasMissingValue());
Assert.assertTrue(instance.classAttribute().isNominal());
Assert.assertEquals(2,instance.classAttribute().numValues());// true/false
Assert.assertEquals("false",instance.classAttribute().value((int) instance.value(instance.classAttribute())));
Assert.assertEquals("false",instance.stringValue(instance.classAttribute()));