### Question:
DirectGraphCommandExecutionContext extends AbstractGraphCommandExecutionContext { @Override public RuleViolations evaluate(final GraphEvaluationContext context) { return EmptyRuleViolations.INSTANCE; } DirectGraphCommandExecutionContext(final DefinitionManager definitionManager,
                                              final FactoryManager factoryManager,
                                              final Index<?, ?> graphIndex);   DirectGraphCommandExecutionContext(final DefinitionManager definitionManager,
                                       final FactoryManager factoryManager,
                                       final RuleEvaluationContextBuilder.StatelessGraphContextBuilder contextBuilder,
                                       final Index<?, ?> graphIndex); @Override RuleViolations evaluate(final GraphEvaluationContext context); @Override RuleSet getRuleSet();  }### Answer:
@Test @SuppressWarnings("unchecked") public void testEvaluate() { when(contextBuilder.containment(any(Element.class), any(Node.class))).thenReturn(mock(NodeContainmentContext.class)); RuleViolations result = tested.evaluate(builder -> builder.containment(mock(Element.class), mock(Node.class))); assertEquals(EmptyRuleViolations.INSTANCE, result); }