NoOpPolicyChain extends PolicyChain { @Override protected Iterator<Policy> iterator() { return Collections.emptyIterator(); } NoOpPolicyChain(ExecutionContext executionContext);   }
@Test public void shouldReturnNullIterator() { noOpPolicyChain = new NoOpPolicyChain(executionContext); Assert.assertEquals(Collections.emptyIterator(), noOpPolicyChain.iterator()); }