@Test
public void updateAnnotations_testAnnotationSizeLessThanMax() {

    // test
    defaultAnnotationService.updateAnnotations(ImmutableMap.of(a, pu));
    // verify
    verify(monitorService).modifyCounter(Counter.ANNOTATION_WRITES, 1, null);
    ArgumentCaptor<List> annotationListCaptor = ArgumentCaptor.forClass(List.class);
    verify(tsdbService).putAnnotations(annotationListCaptor.capture());
    assertEquals(1, annotationListCaptor.getValue().size());
    assertTrue(annotationListCaptor.getValue().contains(a));
}