public void mock(Task spy) {
when(spy.update(anyInt())).thenReturn(Status.RUNNING);
spies[1] = spy;
}
});
SelectorNode node = new SelectorNode();
node.children().add(one);
node.children().add(two);
Task selector = interpreter.start(node);
interpreter.tick(0);
Assert.assertEquals(Status.RUNNING, selector.getStatus());
interpreter.tick(0);