@Test
public void testConvertTimestampToMillis(){

    AnnotationQuery annotationQuery = new AnnotationQuery("scope1", "metric1", null, "unittest", 1557809359073L, 1557809599073L);
    dualAnnotationService.convertTimestampToMillis(annotationQuery);
    assertEquals(1557809359073L, annotationQuery.getStartTimestamp().longValue());
    assertEquals(1557809599073L, annotationQuery.getEndTimestamp().longValue());
    
    annotationQuery = new AnnotationQuery("scope1", "metric1", null, "unittest", 1557809359L, 1557809599L);
    dualAnnotationService.convertTimestampToMillis(annotationQuery);
    assertEquals(1557809359000L, annotationQuery.getStartTimestamp().longValue());
    assertEquals(1557809599000L, annotationQuery.getEndTimestamp().longValue());
    annotationQuery = new AnnotationQuery("scope1", "metric1", null, "unittest", 1557809359123L, 1557809599L);
    dualAnnotationService.convertTimestampToMillis(annotationQuery);
    assertEquals(1557809359123L, annotationQuery.getStartTimestamp().longValue());
    assertEquals(1557809599000L, annotationQuery.getEndTimestamp().longValue());
    annotationQuery = new AnnotationQuery("scope1", "metric1", null, "unittest", 1557809359L, 1557809599456L);
    dualAnnotationService.convertTimestampToMillis(annotationQuery);
    assertEquals(1557809359000L, annotationQuery.getStartTimestamp().longValue());
    assertEquals(1557809599456L, annotationQuery.getEndTimestamp().longValue());
}