### Question:
QueueGraphExecutionContext extends AbstractGraphCommandExecutionContext { public void clear() { getState().clear(); } QueueGraphExecutionContext(final DefinitionManager definitionManager,
                                      final FactoryManager factoryManager,
                                      final RuleManager ruleManager,
                                      final Index<?, ?> graphIndex,
                                      final RuleSet ruleSet);   QueueGraphExecutionContext(final DefinitionManager definitionManager,
                               final FactoryManager factoryManager,
                               final RuleManager ruleManager,
                               final RuleEvaluationContextBuilder.StatefulGraphContextBuilder contextBuilder,
                               final Index<?, ?> graphIndex,
                               final RuleSet ruleSet); void clear(); @Override RuleViolations evaluate(final GraphEvaluationContext context); @Override RuleSet getRuleSet(); void addElement(final Element candidate); List<Element> getUpdatedElements(); void resetUpdatedElements();  }### Answer:
@Test public void testClear() { tested.clear(); verify(state, times(1)).clear(); }