@Test
public void submitAnnotations_testAnnotationSizeLessThanMax() {

    Annotation a = TestUtils.createAnnotation();
    // test
    collectionService.submitAnnotations(user, ImmutableList.of(a));
    // verify
    verify(monitorService).modifyCounter(Counter.ANNOTATION_WRITES, 1, null);
    ArgumentCaptor<List> annotationListCaptor = ArgumentCaptor.forClass(List.class);
    verify(mqService).enqueue(eq(ANNOTATION.getQueueName()), annotationListCaptor.capture());
    assertEquals(1, annotationListCaptor.getValue().size());
    assertTrue(annotationListCaptor.getValue().contains(a));
}