@Test
public void testCommitAnnotations() {

    List<Annotation> messages = Arrays.asList(TestUtils.createAnnotation(), TestUtils.createAnnotation());
    when(mqService.dequeue(eq(MQService.MQQueue.ANNOTATION.getQueueName()), eq(Annotation.class), anyInt(), anyInt())).thenReturn(messages);
    assertEquals(2, collectionService.commitAnnotations(2, 60000));
}