### Question:
DummyVariableCreator extends AbstractDatasetFeatureVectorTransformer implements Serializable { @Override public FeatureVector apply(FeatureVector featureVector) { return convert(featureVector); } @Deprecated  DummyVariableCreator(Dataset dataset); @Deprecated  DummyVariableCreator(Dataset dataset, boolean keepOriginalFeature);  DummyVariableCreator(Dataset dataset, boolean keepOriginalFeature, boolean dense); @Override FeatureInformation getFeatureInformation(FeatureInformation featureInformation); @Override FeatureVector apply(FeatureVector featureVector); FeatureVector convert(FeatureVector featureVector); @Override String toString();  }### Answer:
@SuppressWarnings("deprecation") @Test public void testDummyVariableCreatorKeepOriginalValues() { Dataset dataset = makeDataset(); DummyVariableCreator dummyVariableCreator = new DummyVariableCreator(dataset, true); FeatureVector instance = new InstanceBuilder().set("f1", "beta").set("f2", false).create(); FeatureVector converted = dummyVariableCreator.apply(instance); assertEquals(7, converted.size()); assertFalse(converted.get("f1").isNull()); assertFalse(converted.get("f2").isNull()); }