private void assertNoErrorsInErrorHandler() throws Exception {
   assertThat(mockUpErrorHandler.getErrorCount(), is(0));
 }
 @BeforeMethod
 public void setUp() throws Exception {
   sentryAppender = new SentryAppender();
   sentryAppender.setHandler(mockUpErrorHandler.getMockInstance());
 }