public void testTrivialPolicies() throws Exception {
CompositeCompletionPolicy policy = new CompositeCompletionPolicy();
policy.setPolicies(new CompletionPolicy[] { new MockCompletionPolicySupport(),
new MockCompletionPolicySupport() });
RepeatContext context = policy.start(null);
assertEquals(0, context.getStartedCount());
assertFalse(policy.isComplete(context));
assertFalse(policy.isComplete(context, null));
policy.update(context);
assertEquals(1, context.getStartedCount());
}