@Test
 public void shouldNotSuccessPreviewVideoIfBrightcoveIdIsEmpty() throws OrchidException {
   when(policy.getId()).thenReturn("");
   PreviewEventListener preview = target.new PreviewEventListener();
   preview.processEvent(oc, oe);
   verify(target, times(1)).getString(eq("com.atex.plugins.brightcove.brightcove.id.required"));
 }
 @Test(expected = OrchidException.class)
 public void throwExceptionWhenPreviewVideo() throws CMException, OrchidException {
   doThrow(CMException.class).when(policyWidget).store();
   PreviewEventListener preview = target.new PreviewEventListener();
   preview.processEvent(oc, oe);
 }
 @Test
 public void shouldSuccessfullyPreviewVideo() throws OrchidException {
   PreviewEventListener preview = target.new PreviewEventListener();
   preview.processEvent(oc, oe);
 }