Feature { void setEnable(boolean enable) { mIsEnabled = enable; } Feature(@NonNull String name,@NonNull Node n,@NonNull Field dataDesc[]); void addFeatureListener(FeatureListener listener); void removeFeatureListener(FeatureListener listener); void addFeatureLoggerListener(FeatureLoggerListener logger); void removeFeatureLoggerListener(FeatureLoggerListener logger); Date getLastUpdate(); String getName(); Node getParentNode(); boolean isEnabled(); @NonNull Field[] getFieldsDesc(); @Nullable Sample getSample(); void enableNotification(); void read(); void disableNotification(); @Override String toString();  }
@Test public void setEnable(){ EmptyFeatureTest feature = new EmptyFeatureTest(FEATURE_NAME,null,null); Assert.assertEquals(false, feature.isEnabled()); feature.setEnable(true); Assert.assertEquals(true,feature.isEnabled()); }