@Test
public void testDPLLFiltersClausesTheStatusOfWhichAreKnown() {
Model model = new Model();
model = model.extend(new Symbol("A"), true).extend(new Symbol("B"),
true);
Sentence sentence = (Sentence) parser
.parse("((A AND B) AND (B AND C))");
List<Sentence> clauseList = new Converter<Sentence>()
.setToList(new CNFClauseGatherer()
.getClausesFrom(new CNFTransformer()
.transform(sentence)));
List<Sentence> clausesWithNonTrueValues = dpll
.clausesWithNonTrueValues(clauseList, model);
Assert.assertEquals(1, clausesWithNonTrueValues.size());
Sentence nonTrueClause = (Sentence) parser.parse("(B AND C)");
clausesWithNonTrueValues.contains(nonTrueClause);
}