### Question:
DefaultWorkbenchErrorCallback { public static boolean isKieServerForbiddenException(final Throwable throwable) { if (throwable instanceof KieServicesHttpException && ((KieServicesHttpException) throwable).getHttpCode() == 403) { return true; } if (throwable instanceof DataSetLookupException && (throwable.getCause() != null && throwable.getCause().getMessage().contains("Error code: 403"))) { return true; } return false; }  static boolean isKieServerForbiddenException(final Throwable throwable); static boolean isKieServerUnauthorizedException(final Throwable throwable); static boolean isInvalidBusContentException(final Throwable throwable); static boolean isServerOfflineException(final Throwable throwable); void error(final Throwable throwable); void queue(final Throwable throwable); void dequeue(); void processQueue();  }### Answer:
@Test public void testForbiddenException() { assertTrue(isKieServerForbiddenException(new KieServicesHttpException(null, 403, null, null))); assertTrue(isKieServerForbiddenException(new DataSetLookupException(null, null, new Exception("Unexpected HTTP response code when requesting URI ''! Error code: 403, message: <html><head><title>Error</title></head><body>Forbidden</body></html>")))); assertFalse(isKieServerForbiddenException(new KieServicesHttpException(null, 401, null, null))); assertFalse(isKieServerForbiddenException(new DataSetLookupException(null, null, new Exception("Unexpected HTTP response code when requesting URI ''! Error code: 401, message: <html><head><title>Error</title></head><body>Unauthorized</body></html>")))); assertFalse(isKieServerForbiddenException(new Exception("Some Unexpected HTTP response code when requesting URI"))); }