FilterSessionModel extends AbstractFilterModel { public void setIncludeUnknown(final boolean isIncludeUnknown) { includeUnknown.set(isIncludeUnknown); } FilterSessionModel(final Path file, final List<? extends MarkedWord> words); void replaceContent(final Path file, final List<? extends MarkedWord> words); @Override ObservableNumberValue wordCountProperty(); long getKnownCount(); long getSeenCount(); SimpleBooleanProperty includeUnknownProperty(); boolean isIncludeUnknown(); void setIncludeUnknown(final boolean isIncludeUnknown); ObservableList<FilterSessionWord> getSeenWords();  }
@Test public void testChangeState() { FilterSessionModel target = build(1000, 100); target.setIncludeUnknown(true); validateOk(target, 1000, 1100, true, 1100); }
@Test public void testOnlyUnknown() { FilterSessionModel target = build(0, 100); target.setIncludeUnknown(true); validateOk(target, 0, 100, true, 100); }