@Test
public void removeAnnotation() throws Exception {

  // Add an annotation
  AnnotationImpl a = new AnnotationImpl();
  a.setInpoint(10);
  a.setOutpoint(100);
  a.setMediapackageId("mp123");
  a.setSessionId("session123");
  a.setType("ugc");
  a.setValue("This is some user generated content");
  annotationService.addAnnotation(a);
  // remove annotation
  Assert.assertTrue(annotationService.removeAnnotation(a));
  // ensure that annotation was removed
  Annotation a1FromDb = null;
  try {
    a1FromDb = annotationService.getAnnotation(a.getAnnotationId());
  } catch (NotFoundException e) {
  }
  Assert.assertNull(a1FromDb);
}