@Test (expected = RuntimeException.class)
public void testGetAnnotationsExceedingLimit(){

    AnnotationQuery annotationQuery = new AnnotationQuery("scope1", "metric1", null, "unittest", 1557809359073L, 1557809599073L);
    List<AnnotationQuery> queries = new ArrayList<>();
    queries.add(annotationQuery);
    ElasticSearchAnnotationService spyService = null;
    try {
        spyService = _initializeSpyService(esAnnotationService, getReply, false);
    } catch (IOException e) {
        fail();
    }
    Whitebox.setInternalState(spyService, "ANNOTATION_INDEX_MAX_RESULT_WINDOW", 1);
    spyService.getAnnotations(queries);
}