when(node.isHidden()).thenReturn(true);
assertTrue(nodes.isHiddenLeafNode(node));
}
@Test public void should_return_false_if_given_node_is_an_ILeafNode_but_is_not_hidden() {
ILeafNode node = mock(ILeafNode.class);
when(node.isHidden()).thenReturn(false);
assertFalse(nodes.isHiddenLeafNode(node));
}